From de85610be02de2f89bbd3d69d24773fc6382b547 Mon Sep 17 00:00:00 2001 From: Gabe Gorelick Date: Wed, 1 May 2024 05:37:21 -0400 Subject: [PATCH] cmd/k8s-operator/deploy/chart: allow users to configure additional labels for the operator's Pod via Helm chart values. cmd/k8s-operator/deploy/chart: allow users to configure additional labels for the operator's Pod via Helm chart values. Fixes #11947 Signed-off-by: Gabe Gorelick --- cmd/k8s-operator/deploy/chart/templates/deployment.yaml | 3 +++ cmd/k8s-operator/deploy/chart/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml index ba1de9779..36f3d347b 100644 --- a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml +++ b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml @@ -21,6 +21,9 @@ spec: {{- end }} labels: app: operator + {{- with .Values.operatorConfig.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/cmd/k8s-operator/deploy/chart/values.yaml b/cmd/k8s-operator/deploy/chart/values.yaml index caceeabf2..d77c8950c 100644 --- a/cmd/k8s-operator/deploy/chart/values.yaml +++ b/cmd/k8s-operator/deploy/chart/values.yaml @@ -37,6 +37,7 @@ operatorConfig: resources: {} podAnnotations: {} + podLabels: {} tolerations: []