From ab0b6f1833fe400c9c67c3ca0e821ecdd71f85a5 Mon Sep 17 00:00:00 2001 From: veikovx <2744299+veikovx@users.noreply.github.com> Date: Mon, 18 Sep 2023 13:56:28 +0300 Subject: [PATCH 1/3] Update values.yaml --- helm/charts/oathkeeper-maester/values.yaml | 2 ++ 1 file changed, 2 insertions(+) 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: [] From 946f0008ddc06957965ab49488afed22699015b0 Mon Sep 17 00:00:00 2001 From: veikovx <2744299+veikovx@users.noreply.github.com> Date: Mon, 18 Sep 2023 13:56:56 +0300 Subject: [PATCH 2/3] Update README.md --- helm/charts/oathkeeper-maester/README.md | 1 + 1 file changed, 1 insertion(+) 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 | From 4465f563f7e243dfa2fafa9e0336b0c89f4fdad7 Mon Sep 17 00:00:00 2001 From: veikovx <2744299+veikovx@users.noreply.github.com> Date: Mon, 18 Sep 2023 13:57:31 +0300 Subject: [PATCH 3/3] Update deployment.yaml --- helm/charts/oathkeeper-maester/templates/deployment.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }}