File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,20 @@ print_cluster_info() {
9797
9898# TODO (andreyvelich): Currently, we print manager logs due to flaky test.
9999echo " Deploy Kubeflow Trainer runtimes"
100- kubectl apply --server-side -k manifests/overlays/runtimes || (
100+ E2E_RUNTIMES_DIR=" artifacts/e2e/runtimes"
101+ mkdir -p " ${E2E_RUNTIMES_DIR} "
102+ XGBOOST_RUNTIME_CI_IMAGE_NAME=" ghcr.io/kubeflow/trainer/xgboost-runtime"
103+ cat << EOF >"${E2E_RUNTIMES_DIR} /kustomization.yaml"
104+ apiVersion: kustomize.config.k8s.io/v1beta1
105+ kind: Kustomization
106+ resources:
107+ - ../../../manifests/overlays/runtimes
108+ images:
109+ - name: "${XGBOOST_RUNTIME_CI_IMAGE_NAME} "
110+ newTag: "${CI_IMAGE_TAG} "
111+ EOF
112+
113+ kubectl apply --server-side -k " ${E2E_RUNTIMES_DIR} " || (
101114 kubectl logs -n ${NAMESPACE} -l app.kubernetes.io/name=trainer &&
102115 print_cluster_info &&
103116 exit 1
@@ -122,7 +135,7 @@ kubectl apply --server-side -k manifests/overlays/runtimes || (
122135# load_image_to_kind ${JAX_RUNTIME_IMAGE}
123136
124137# Build and load custom runtime images that are not available in public registries.
125- XGBOOST_RUNTIME_CI_IMAGE=" ghcr.io/kubeflow/trainer/xgboost-runtime :${CI_IMAGE_TAG} "
138+ XGBOOST_RUNTIME_CI_IMAGE=" ${XGBOOST_RUNTIME_CI_IMAGE_NAME} :${CI_IMAGE_TAG} "
126139echo " Build XGBoost runtime image"
127140${CONTAINER_RUNTIME} build . -f cmd/runtimes/xgboost/Dockerfile -t ${XGBOOST_RUNTIME_CI_IMAGE}
128141load_image_to_kind ${XGBOOST_RUNTIME_CI_IMAGE}
You can’t perform that action at this time.
0 commit comments