Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Support for custom labels and annotations in pods created by chart #682

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions chart/open-feature-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
19 changes: 19 additions & 0 deletions config/overlays/helm/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}___"
Expand Down
Loading