Skip to content
4 changes: 3 additions & 1 deletion velero/backup/common-service/label-common-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ function label_ibm_catalogsources() {
function label_ns_and_related() {

title "Start to label the namespaces, operatorgroups and secrets... "
namespaces=$(${OC} get configmap namespace-scope -n $OPERATOR_NS -oyaml | awk '/^data:/ {flag=1; next} /^ namespaces:/ {print $2; next} flag && /^ [^ ]+: / {flag=0}')
# namespaces=$(${OC} get configmap namespace-scope -n $OPERATOR_NS -oyaml | awk '/^data:/ {flag=1; next} /^ namespaces:/ {print $2; next} flag && /^ [^ ]+: / {flag=0}')
namespaces=$(${OC} get configmap common-service-maps -n kube-public -o jsonpath='{.data.common-service-maps\.yaml}' | awk -v ns="$OPERATOR_NS" 'BEGIN {found=0}/requested-from-namespace:/ {found=0} $0 ~ ns {found=1} found && /^ *-/ {print $2}' | tr '\n' ',' | sed 's/,$/\n/')
echo "Namespaces from common-service-maps configmap: $namespaces"
# add cert-manager namespace and licensing namespace and lsr namespace into the list with comma separated
if [[ $CONTROL_NS != "" ]]; then
namespaces+=",$CONTROL_NS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ spec:
- rolebinding
- serviceaccount
- deployments
- secrets
labelSelector: foundationservices.cloudpak.ibm.com=odlm-chart
name: odlm-resources
type: resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ spec:
- serviceaccount
- deployments
- secrets
- commonservices.operator.ibm.com
labelSelector: foundationservices.cloudpak.ibm.com=iam-chart
name: im-resources
type: resource
Expand All @@ -42,7 +41,6 @@ spec:
- rolebinding
- serviceaccount
- deployments
- secrets
labelSelector: foundationservices.cloudpak.ibm.com=ui-chart
name: ui-resources
type: resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
- serviceaccount
- deployments
- secrets
- zenservices.zen.cpd.ibm.com
labelSelector: foundationservices.cloudpak.ibm.com=zen-chart
name: zen-resources
type: resource
Expand All @@ -35,6 +36,11 @@ spec:
- secrets
name: zen-rbac-resources
type: resource
- backupRef: zen-resources
includedResourceTypes:
- zenservices.zen.cpd.ibm.com
name: zenservice
type: resource
- backupRef: zen-resources
includedResourceTypes:
- deployments
Expand Down Expand Up @@ -65,4 +71,5 @@ spec:
- group: zen-cluster-resources
- group: zen-rbac-resources
- group: zen-deployment
- group: zenservice
- hook: zen-check/podReady
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ spec:
includedNamespaces:
- <child recipe namespace>
type: volume
- includeClusterResources: true
includedResourceTypes:
- zenservices.zen.cpd.ibm.com
- customresourcedefinitions.apiextensions.k8s.io
labelSelector: foundationservices.cloudpak.ibm.com=zen
name: zenservice
includedNamespaces:
- <child recipe namespace>
type: resource
- labelSelector: foundationservices.cloudpak.ibm.com=zen5-data
includeClusterResources: true
includedResourceTypes:
Expand Down Expand Up @@ -93,7 +84,6 @@ spec:
- name: post-backup
priority: 0
sequence:
- group: zenservice
- group: zen-pre-deploy
- group: zen-deployment
#volumes (should happen at the end)
Expand All @@ -102,7 +92,6 @@ spec:
priority: 1
sequence:
#zen
- group: zenservice
- hook: zen-metastore-edb-check/podReady
- group: zen-pre-deploy
- group: zen-volume
Expand Down