Skip to content

Commit

Permalink
Issue #3955 - Bug: remove hard-coded namespace in agent-install.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Le Zhang <zhangl@us.ibm.com>
  • Loading branch information
LiilyZhang committed Nov 20, 2023
1 parent 8da1a27 commit 20f4243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent-install/agent-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3603,7 +3603,7 @@ function check_agent_deployment_exist() {
log_fatal 3 "Current deployment image registry cannot be updated, please run agent-uninstall.sh and re-run agent-install.sh"
fi

local image_pull_secrets_length=$($KUBECTL get deployment agent -n agent-ns4 -o jsonpath='{.spec.template.spec.imagePullSecrets}' | jq length)
local image_pull_secrets_length=$($KUBECTL get deployment agent -n ${AGENT_NAMESPACE} -o jsonpath='{.spec.template.spec.imagePullSecrets}' | jq length)
local use_image_pull_secrets
if [[ "$image_pull_secrets_length" == "1" ]]; then
use_image_pull_secrets="true"
Expand Down

0 comments on commit 20f4243

Please sign in to comment.