-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sdk): Generate external Kubernetes and JobSet models #2466
Changes from 5 commits
f844687
c947d08
d161638
0827fce
330ae40
bbe2d4b
76e4b96
b5b4597
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,11 +36,17 @@ PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) | |
# Tool Binaries | ||
LOCALBIN ?= $(PROJECT_DIR)/bin | ||
|
||
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen | ||
GINKGO ?= $(LOCALBIN)/ginkgo | ||
ENVTEST ?= $(LOCALBIN)/setup-envtest | ||
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen | ||
KIND ?= $(LOCALBIN)/kind | ||
|
||
# Instructions to download tools for development. | ||
|
||
.PHONY: ginkgo | ||
ginkgo: ## Download the ginkgo binary if required. | ||
GOBIN=$(LOCALBIN) go install github.com/onsi/ginkgo/v2/ginkgo@$(shell go list -m -f '{{.Version}}' github.com/onsi/ginkgo/v2) | ||
|
||
.PHONY: envtest | ||
envtest: ## Download the setup-envtest binary if required. | ||
GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/[email protected] | ||
|
@@ -139,7 +145,7 @@ test-e2e-setup-cluster: kind ## Setup Kind cluster for e2e test. | |
|
||
.PHONY: test-e2e | ||
test-e2e: ## Run Go e2e test. | ||
go test ./test/e2e/... | ||
$(GINKGO) -v ./test/e2e/... | ||
|
||
# Input and output location for Notebooks executed with Papermill. | ||
NOTEBOOK_INPUT=$(PROJECT_DIR)/examples/pytorch/image-classification/mnist.ipynb | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,14 @@ cd manifests/overlays/manager | |
kustomize edit set image kubeflow/trainer-controller-manager=${CONTROLLER_MANAGER_CI_IMAGE} | ||
|
||
echo "Create Kind cluster and load Kubeflow Trainer images" | ||
${KIND} create cluster --image "${KIND_NODE_VERSION}" | ||
cat <<EOF | ${KIND} create cluster --image "${KIND_NODE_VERSION}" --config=- | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added this config, so we can add more Kind workers in the future to decrease kube-scheduler time for placing Pods. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you open a separate PR? Because this seems not to related to openapi-gen. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, let me open it. |
||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
- role: worker | ||
EOF | ||
|
||
${KIND} load docker-image ${CONTROLLER_MANAGER_CI_IMAGE} | ||
|
||
echo "Deploy Kubeflow Trainer control plane" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
{ | ||
"packageName": "kubeflow.trainer", | ||
"typeMappings": { | ||
"K8sIoApiAutoscalingV2MetricSpec": "V2MetricSpec", | ||
"K8sIoApimachineryPkgUtilIntstrIntOrString": "object", | ||
"V1Time": "datetime" | ||
} | ||
"typeMappings": {} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tenzen-y I noticed a new error in our e2e:
Since we use ginkgo to run our tests, can we use their binary to run tests similar to JobSet and Kueue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using ginkgo binary would be more better