Skip to content

Commit cc372ff

Browse files
Krishna-kg732google-oss-robot
authored andcommitted
Chore:using test image instead of latest
Signed-off-by: krishna-kg732 <krishnagupta.kg2k6@gmail.com>
1 parent ba5dc23 commit cc372ff

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

hack/e2e-setup-cluster.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,20 @@ print_cluster_info() {
9797

9898
# TODO (andreyvelich): Currently, we print manager logs due to flaky test.
9999
echo "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}"
126139
echo "Build XGBoost runtime image"
127140
${CONTAINER_RUNTIME} build . -f cmd/runtimes/xgboost/Dockerfile -t ${XGBOOST_RUNTIME_CI_IMAGE}
128141
load_image_to_kind ${XGBOOST_RUNTIME_CI_IMAGE}

0 commit comments

Comments
 (0)