From ce80adb9ab06fe990855f59ab47bc2465b86bb3d Mon Sep 17 00:00:00 2001 From: Waldek Herka <87032474+wherka-ama@users.noreply.github.com> Date: Fri, 6 Oct 2023 10:56:40 +0200 Subject: [PATCH] Allow custom labels to be specified for controller pods (#2952) Co-authored-by: Waldek Herka --- .../gha-runner-scale-set-controller/templates/deployment.yaml | 3 +++ charts/gha-runner-scale-set-controller/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/gha-runner-scale-set-controller/templates/deployment.yaml b/charts/gha-runner-scale-set-controller/templates/deployment.yaml index 5403a4d1..bdec673d 100644 --- a/charts/gha-runner-scale-set-controller/templates/deployment.yaml +++ b/charts/gha-runner-scale-set-controller/templates/deployment.yaml @@ -27,6 +27,9 @@ spec: app.kubernetes.io/component: controller-manager app.kubernetes.io/version: {{ .Chart.Version }} {{- include "gha-runner-scale-set-controller.selectorLabels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/charts/gha-runner-scale-set-controller/values.yaml b/charts/gha-runner-scale-set-controller/values.yaml index c6a10455..c4525a43 100644 --- a/charts/gha-runner-scale-set-controller/values.yaml +++ b/charts/gha-runner-scale-set-controller/values.yaml @@ -41,6 +41,8 @@ serviceAccount: podAnnotations: {} +podLabels: {} + podSecurityContext: {} # fsGroup: 2000