open-horizon / anax

Horizon agent control system
https://open-horizon.github.io/docs/anax/docs/
Apache License 2.0
72 stars 99 forks source link

Bug: remove hard-coded namespace in agent-install.sh #3955

Open LiilyZhang opened 8 months ago

LiilyZhang commented 8 months ago

namespace is hard-coded in agent-install.sh at https://github.com/open-horizon/anax/blob/master/agent-install/agent-install.sh#L3606:

local image_pull_secrets_length=$($KUBECTL get deployment agent -n agent-ns4 -o jsonpath='{.spec.template.spec.imagePullSecrets}' | jq length)

Should change to -n ${AGENT_NAMESPACE}