Skip to content

Commit 41170d8

Browse files
committed
fix: add -c flag to k8s/test.sh
1 parent 0230f01 commit 41170d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/k8s_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'K8: Deploy'
1+
name: 'K8: Cluster Deploy'
22

33
on:
44
workflow_call:

k8s/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TEST_IMAGE_TAG=""
77
AZURE_CONTAINER_REGISTRY=""
88
TEST_CMD=""
99

10-
while getopts n:d:h:r:t: flag
10+
while getopts n:d:h:r:t:c: flag
1111
do
1212
case "${flag}" in
1313
n) KUBERNETES_NAMESPACE=${OPTARG};;
@@ -32,6 +32,7 @@ kubectl rollout status deployment ${KUBERNETES_DEPLOYMENT_NAME}
3232

3333
set +e
3434
exitcode=0
35+
echo "::warning::running test command: kubectl exec -i deployment/${KUBERNETES_DEPLOYMENT_NAME} -c $KUBERNETES_DEPLOYMENT_NAME -- '$TEST_CMD'"
3536
kubectl exec -i deployment/${KUBERNETES_DEPLOYMENT_NAME} -c $KUBERNETES_DEPLOYMENT_NAME -- "$TEST_CMD"
3637
exitcode=$?
3738
set -e

0 commit comments

Comments
 (0)