diff --git a/helm/charts/oathkeeper-maester/README.md b/helm/charts/oathkeeper-maester/README.md index 75c5678454..8baa0944b0 100644 --- a/helm/charts/oathkeeper-maester/README.md +++ b/helm/charts/oathkeeper-maester/README.md @@ -26,6 +26,7 @@ A Helm chart for deploying ORY Oathkeeper Rule Controller in Kubernetes | deployment.automountServiceAccountToken | bool | `true` | | | deployment.dnsConfig | object | `{}` | Configure pod dnsConfig. | | deployment.envs | object | `{}` | Configure environment variables. | +| deployment.extraLabels | object | `{}` | Deployment level extra labels | | deployment.nodeSelector | object | `{}` | Node labels for pod assignment. | | deployment.podMetadata | object | `{"annotations":{},"labels":{}}` | Specify pod metadata, this metadata is added directly to the pod, and not higher objects | | deployment.podMetadata.annotations | object | `{}` | Extra pod level annotations | diff --git a/helm/charts/oathkeeper-maester/templates/deployment.yaml b/helm/charts/oathkeeper-maester/templates/deployment.yaml index 6becad86b4..72d048a653 100644 --- a/helm/charts/oathkeeper-maester/templates/deployment.yaml +++ b/helm/charts/oathkeeper-maester/templates/deployment.yaml @@ -8,7 +8,10 @@ metadata: namespace: {{ .Release.Namespace }} {{- end }} labels: -{{ include "oathkeeper-maester.labels" . | indent 4 }} + {{- include "oathkeeper-maester.labels" . | nindent 4 }} + {{- with .Values.deployment.extraLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} diff --git a/helm/charts/oathkeeper-maester/values.yaml b/helm/charts/oathkeeper-maester/values.yaml index 7f65ba69c2..699cb3a1c5 100644 --- a/helm/charts/oathkeeper-maester/values.yaml +++ b/helm/charts/oathkeeper-maester/values.yaml @@ -70,6 +70,8 @@ deployment: # -- Configure node tolerations. tolerations: [] + # -- Deployment level extra labels + extraLabels: {} # -- Configure pod topologySpreadConstraints. topologySpreadConstraints: []