Skip to content

Commit

Permalink
Updated the variable name and ignored kruize-ui pod while getting kru…
Browse files Browse the repository at this point in the history
…ize pod name

Signed-off-by: Chandrakala Subramanyam <[email protected]>
  • Loading branch information
chandrams committed Aug 24, 2023
1 parent 9f85ec5 commit f48507b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ target="autotune"
timeout=-1

# Test with the kruize docker image specified in the deployment yaml
use_yaml_image=0
use_yaml_build=0

function ctrlc_handler() {
# Check if cluster type is docker
Expand Down Expand Up @@ -174,6 +174,7 @@ while getopts ac:d:i:k:m:n:o:p:stub-: gopts; do
;;
u)
KRUIZE_UI_DOCKER_IMAGE="${OPTARG}"
;;
b)
use_yaml_build=1
;;
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/common/common_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ function get_autotune_pod_log() {

echo "target = $target"
if [ ${target} == "crc" ]; then
autotune_pod=$(kubectl get pod -n ${NAMESPACE} | grep kruize | cut -d " " -f1)
autotune_pod=$(kubectl get pod -n ${NAMESPACE} | grep kruize | grep -v kruize-ui | cut -d " " -f1)
pod_log_msg=$(kubectl logs ${autotune_pod} -n ${NAMESPACE})
else
autotune_pod=$(kubectl get pod -n ${NAMESPACE} | grep autotune | cut -d " " -f1)
Expand Down

0 comments on commit f48507b

Please sign in to comment.