Skip to content

Commit e5d2f83

Browse files
authored
change nss crd label to nss instead of crd (#2540)
* change nss crd label to nss instead of crd * standardize label for nss sub
1 parent 334bc31 commit e5d2f83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

velero/backup/common-service/label-common-service.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ function label_nss(){
411411
local nss_pm="ibm-namespace-scope-operator"
412412
# Using the same label as common service operator has for both sub and crd
413413
if [[ $NO_OLM == "false" ]]; then
414-
${OC} label subscriptions.operators.coreos.com $nss_pm foundationservices.cloudpak.ibm.com=subscription -n $OPERATOR_NS --overwrite=true 2>/dev/null
415-
${OC} label customresourcedefinition namespacescopes.operator.ibm.com foundationservices.cloudpak.ibm.com=crd --overwrite=true 2>/dev/null
414+
${OC} label subscriptions.operators.coreos.com $nss_pm foundationservices.cloudpak.ibm.com=nss -n $OPERATOR_NS --overwrite=true 2>/dev/null
415+
${OC} label customresourcedefinition namespacescopes.operator.ibm.com foundationservices.cloudpak.ibm.com=nss --overwrite=true 2>/dev/null
416416
else
417417
#cluster scoped resources
418418
${OC} label clusterrole ibm-namespace-scope-operator-$OPERATOR_NS foundationservices.cloudpak.ibm.com=nss-cluster --overwrite=true 2>/dev/null
@@ -698,4 +698,4 @@ function warning() {
698698

699699
main $*
700700

701-
# ---------------- finish ----------------
701+
# ---------------- finish ----------------

0 commit comments

Comments
 (0)