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