Skip to content

Commit

Permalink
update labeling permissions and script (#2245)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Luzarraga <[email protected]>
  • Loading branch information
bluzarraga authored Oct 8, 2024
1 parent 620aad0 commit 1a699d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions velero/backup/common-service/label-bedrock-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ rules:
- policy
- zen.cpd.ibm.com
- operators.coreos.com
- operator.ibm.com
- operator.ibm.com
- rbac.authorization.k8s.io
resources:
- namespaces
- zenservices
Expand All @@ -28,8 +29,8 @@ rules:
- secrets
- commonservices
- namespacescopes
- role
- rolebinding
- roles
- rolebindings
- serviceaccount
#not necessary for cpd
#- ibmlicenseservicereporters.operator.ibm.com
2 changes: 1 addition & 1 deletion velero/backup/common-service/label-common-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ function label_nss(){
${OC} label role nss-managed-role-from-$OPERATOR_NS foundationservices.cloudpak.ibm.com=nss -n $SERVICES_NS --overwrite=true 2>/dev/null
${OC} label rolebinding nss-managed-role-from-$OPERATOR_NS foundationservices.cloudpak.ibm.com=nss -n $OPERATOR_NS --overwrite=true 2>/dev/null
${OC} label rolebinding nss-managed-role-from-$OPERATOR_NS foundationservices.cloudpak.ibm.com=nss -n $SERVICES_NS --overwrite=true 2>/dev/null
${OC} label configmap namespace-scope foundationservices.cloudpak.ibm.com=nss -n $SERVICES_NS --overwrite=true 2>/dev/null
${OC} label configmap namespace-scope foundationservices.cloudpak.ibm.com=nss -n $OPERATOR_NS --overwrite=true 2>/dev/null
if [[ $TETHERED_NS != "" ]]; then
for namespace in ${TETHERED_NS//,/ }
do
Expand Down

0 comments on commit 1a699d3

Please sign in to comment.