diff --git a/chart/open-feature-operator/values.yaml b/chart/open-feature-operator/values.yaml index d05579c1f..3e885a228 100644 --- a/chart/open-feature-operator/values.yaml +++ b/chart/open-feature-operator/values.yaml @@ -120,6 +120,10 @@ controllerManager: cpu: 5m ## @param controllerManager.kubeRbacProxy.resources.requests.memory Sets memory resource requests for kube-rbac-proxy. memory: 64Mi + customLabels: + app: kube-rbac-proxy + customAnnotations: + note: "Custom annotation for kube-rbac-proxy" manager: image: ## @param controllerManager.manager.image.repository Sets the image for the operator. @@ -139,6 +143,10 @@ controllerManager: memory: 64Mi ## @param controllerManager.replicas Sets number of replicas of the OpenFeature operator pod. replicas: 1 + customLabels: + app: controller-manager + customAnnotations: + note: "Custom annotation for controller-manager" managerConfig: ## @param managerConfig.flagsValidatonEnabled Enables the validating webhook for FeatureFlag CR. diff --git a/config/overlays/helm/manager.yaml b/config/overlays/helm/manager.yaml index ee92bbbd0..49e3b2020 100644 --- a/config/overlays/helm/manager.yaml +++ b/config/overlays/helm/manager.yaml @@ -3,9 +3,28 @@ kind: Deployment metadata: name: controller-manager namespace: system + labels: + app: controller-manager + {{- if .Values.customLabels }} + {{ toYaml .Values.customLabels | nindent 4 }} + {{- end }} + annotations: + {{- if .Values.customAnnotations }} + {{ toYaml .Values.customAnnotations | nindent 4 }} + {{- end }} spec: replicas: 0{{ .Values.controllerManager.replicas }} template: + metadata: + labels: + app: controller-manager + {{- if .Values.customLabels }} + {{ toYaml .Values.customLabels | nindent 8 }} + {{- end }} + annotations: + {{- if .Values.customAnnotations }} + {{ toYaml .Values.customAnnotations | nindent 8 }} + {{- end }} spec: # this is transformed by .github/scripts/strip-kustomize-helm.sh ___imagePullSecrets___: "___ ___newline___{{ toYaml .Values.imagePullSecrets | indent 8 }}___"