Fix Target Namespace Default in Bash
When using "dynamic rbac" without any namespace specified for the
NAMESPACE env var (i.e. for a bash install), the
`add-targeted-namespace-dynamic-rbac.sh` script is now run in the
Operator namespace instead of 'add-targeted-namespace.sh'.
@@ -45,7 +45,7 @@ IFS=', ' read -r -a array <<< "$NAMESPACE"
if [ ${#array[@]} -eq 0 ]
then
echo "NAMESPACE is empty, updating Operator namespace ${PGO_OPERATOR_NAMESPACE}"
- $PGOROOT/deploy/add-targeted-namespace.sh ${PGO_OPERATOR_NAMESPACE} > /dev/null
+ array=("${PGO_OPERATOR_NAMESPACE}")
fi
if [[ "${PGO_NAMESPACE_MODE:-dynamic}" != "dynamic" ]]
