Skip to content

Commit 2764d9c

Browse files
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'.
1 parent 5ee47f3 commit 2764d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/setupnamespaces.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ IFS=', ' read -r -a array <<< "$NAMESPACE"
4545
if [ ${#array[@]} -eq 0 ]
4646
then
4747
echo "NAMESPACE is empty, updating Operator namespace ${PGO_OPERATOR_NAMESPACE}"
48-
$PGOROOT/deploy/add-targeted-namespace.sh ${PGO_OPERATOR_NAMESPACE} > /dev/null
48+
array=("${PGO_OPERATOR_NAMESPACE}")
4949
fi
5050

5151
if [[ "${PGO_NAMESPACE_MODE:-dynamic}" != "dynamic" ]]

0 commit comments

Comments
 (0)