File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -416,12 +416,7 @@ create-workload-cluster: $(ENVSUBST) $(KUBECTL) ## Create a workload cluster.
416416 # Get kubeconfig and store it locally.
417417 $(KUBECTL) get secret/$(CLUSTER_NAME)-kubeconfig -n default -o json | jq -r .data.value | base64 --decode > ./kubeconfig
418418 # TODO: Standardize timeouts across the Makefile and make them configurable based on the job.
419- $(KUBECTL) -n default wait --for=condition=Ready --timeout=60m cluster "$(CLUSTER_NAME)" && RET=$$? || RET=$$?; \
420- if [ "$$RET" -ne "0" ]; then \
421- echo "Failed to wait for cluster to be ready"; \
422- $(KUBECTL) -n default get cluster-api -o yaml > ${ARTIFACTS}/debug.yaml; \
423- exit 1; \
424- fi; \
419+ $(KUBECTL) -n default wait --for=condition=Ready --timeout=60m clusters.v1beta1.cluster.x-k8s.io "$(CLUSTER_NAME)"
425420
426421 # Set the namespace to `default` b/c when the service account is auto mounted, the namespace is changed to `test-pods`.
427422 $(KUBECTL) --kubeconfig=./kubeconfig config set-context --current --namespace="default"
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ if [[ ! "${CLUSTER_TEMPLATE}" =~ "aks" ]]; then
251251 install_addons
252252fi
253253
254- " ${KUBECTL} " --kubeconfig " ${REPO_ROOT} /${KIND_CLUSTER_NAME} .kubeconfig" wait -A --for=condition=Ready --timeout=10m -l " cluster.x-k8s.io/cluster-name=${CLUSTER_NAME} " machinedeployments, machinepools
254+ " ${KUBECTL} " --kubeconfig " ${REPO_ROOT} /${KIND_CLUSTER_NAME} .kubeconfig" wait -A --for=condition=Ready --timeout=10m -l " cluster.x-k8s.io/cluster-name=${CLUSTER_NAME} " machinepools.v1beta1.cluster.x-k8s.io,machinedeployments.v1beta1.cluster.x-k8s.io
255255
256256echo " Cluster ${CLUSTER_NAME} created and fully operational"
257257
You can’t perform that action at this time.
0 commit comments