add change to manual add target namespace script to allow for rbac updating
@@ -32,6 +32,11 @@ else
fi
# create RBAC
+$PGO_CMD -n $1 delete sa pgo-backrest-sa
+$PGO_CMD -n $1 delete sa pgo-target-sa
+$PGO_CMD -n $1 delete role pgo-target-role pgo-backrest-role
+$PGO_CMD -n $1 delete rolebinding pgo-target-role-binding pgo-backrest-role-binding
+
cat $PGOROOT/conf/postgres-operator/pgo-backrest-sa.json | sed 's/{{.TargetNamespace}}/'"$1"'/' | $PGO_CMD -n $1 create -f -
cat $PGOROOT/conf/postgres-operator/pgo-target-sa.json | sed 's/{{.TargetNamespace}}/'"$1"'/' | $PGO_CMD -n $1 create -f -
cat $PGOROOT/conf/postgres-operator/pgo-target-role.json | sed 's/{{.TargetNamespace}}/'"$1"'/' | $PGO_CMD -n $1 create -f -
