diff --git a/charts/community-operator/templates/operator.yaml b/charts/community-operator/templates/operator.yaml index 2de178c2..69369245 100644 --- a/charts/community-operator/templates/operator.yaml +++ b/charts/community-operator/templates/operator.yaml @@ -21,6 +21,9 @@ spec: metadata: labels: name: {{ .Values.operator.name }} + {{- with .Values.operator.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/charts/community-operator/values.yaml b/charts/community-operator/values.yaml index 0ccae099..d3301dfb 100644 --- a/charts/community-operator/values.yaml +++ b/charts/community-operator/values.yaml @@ -48,6 +48,9 @@ operator: securityContext: {} + # Custom labels to be added to the operator pod + podLabels: {} + ## Operator's database database: name: mongodb-database