From 03c9248018e80070126b5dc16d7a61cd78890e2f Mon Sep 17 00:00:00 2001 From: Ben Luzarraga Date: Wed, 17 Sep 2025 11:06:18 -0500 Subject: [PATCH] add cpd default labels to cluster scoped resources Signed-off-by: Ben Luzarraga --- helm-cluster-scoped/templates/00-crd.yaml | 6 ++++++ helm-cluster-scoped/templates/01-cluster-rbac.yaml | 6 ++++++ helm-cluster-scoped/values.yaml | 2 ++ 3 files changed, 14 insertions(+) diff --git a/helm-cluster-scoped/templates/00-crd.yaml b/helm-cluster-scoped/templates/00-crd.yaml index 8ebe599..8121e63 100644 --- a/helm-cluster-scoped/templates/00-crd.yaml +++ b/helm-cluster-scoped/templates/00-crd.yaml @@ -7,6 +7,12 @@ metadata: name: namespacescopes.operator.ibm.com labels: component-id: {{ .Chart.Name }} + {{- with .Values.cpfs.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.cpfs.clusterLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: group: operator.ibm.com names: diff --git a/helm-cluster-scoped/templates/01-cluster-rbac.yaml b/helm-cluster-scoped/templates/01-cluster-rbac.yaml index 32c8ba8..cfb8ef0 100644 --- a/helm-cluster-scoped/templates/01-cluster-rbac.yaml +++ b/helm-cluster-scoped/templates/01-cluster-rbac.yaml @@ -4,6 +4,12 @@ metadata: name: ibm-namespace-scope-operator-{{ .Values.global.operatorNamespace }} labels: component-id: {{ .Chart.Name }} + {{- with .Values.cpfs.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.cpfs.clusterLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} rules: - verbs: - create diff --git a/helm-cluster-scoped/values.yaml b/helm-cluster-scoped/values.yaml index ecbc4b0..caf1696 100644 --- a/helm-cluster-scoped/values.yaml +++ b/helm-cluster-scoped/values.yaml @@ -3,6 +3,8 @@ cpfs: imageRegistryNamespaceOperator: cpopen imageRegistryNamespaceOperand: cpopen/cpfs + labels: + clusterLabels: global: operatorNamespace: operators