File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
33CC_IMAGE_REPOSITORY=" ${IMAGE_REPOSITORY:- us-docker.pkg.dev/ castai-hub/ library/ cluster-controller} "
44CC_IMAGE_TAG=" ${IMAGE_TAG:- latest} "
5+ LOAD_TEST_IMAGE_REPOSITORY=" ${LOAD_TEST_IMAGE_REPOSITORY:- $CC_IMAGE_REPOSITORY } "
6+ LOAD_TEST_IMAGE_TAG=" ${LOAD_TEST_IMAGE_TAG:- $CC_IMAGE_TAG } "
57DEPLOY_CLUSTER_CONTROLLER=" ${DEPLOY_CLUSTER_CONTROLLER:- true} "
68
79# Determine the directory where the script resides.
@@ -28,4 +30,6 @@ if [ "$DEPLOY_CLUSTER_CONTROLLER" = "true" ]; then
2830fi
2931
3032echo " Deploying load testing components"
31- kubectl apply -k " $SCRIPT_DIR "
33+ kubectl kustomize " $SCRIPT_DIR " | \
34+ LOADTEST_REPOSITORY=" $LOAD_TEST_IMAGE_REPOSITORY " LOADTEST_TAG=" $LOAD_TEST_IMAGE_TAG " envsubst \$ LOADTEST_REPOSITORY,\$ LOADTEST_TAG | \
35+ kubectl apply -f -
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ spec:
167167 serviceAccountName : castai-loadtest-agent-sa
168168 containers :
169169 - name : castai-agent
170- image : docker.io/lachezarcast/cluster-controller:loadtest2 # TODO!
170+ image : ${LOADTEST_REPOSITORY}:${LOADTEST_TAG}
171171 imagePullPolicy : Always
172172 ports :
173173 - containerPort : 8080
You can’t perform that action at this time.
0 commit comments