From e108e04ddad3d47cf33b4466227770d686b07c7e Mon Sep 17 00:00:00 2001 From: Christian Dobinsky Date: Tue, 1 Jun 2021 02:21:32 +0200 Subject: [PATCH] chart: add podLabels to helm chart (#583) * Add pod labels to helm chart * fix: make podLabels consistent to podAnnotations * Update charts/actions-runner-controller/Chart.yaml Co-authored-by: Yusuke Kuoka --- charts/actions-runner-controller/templates/deployment.yaml | 3 +++ .../templates/githubwebhook.deployment.yaml | 3 +++ charts/actions-runner-controller/values.yaml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/charts/actions-runner-controller/templates/deployment.yaml b/charts/actions-runner-controller/templates/deployment.yaml index 8175ac8e..9abe6bd2 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -18,6 +18,9 @@ spec: {{- end }} labels: {{- include "actions-runner-controller.selectorLabels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: diff --git a/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml b/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml index 68756ba3..e88e8c54 100644 --- a/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml +++ b/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml @@ -19,6 +19,9 @@ spec: {{- end }} labels: {{- include "actions-runner-controller-github-webhook-server.selectorLabels" . | nindent 8 }} + {{- with .Values.githubWebhookServer.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} spec: {{- with .Values.githubWebhookServer.imagePullSecrets }} imagePullSecrets: diff --git a/charts/actions-runner-controller/values.yaml b/charts/actions-runner-controller/values.yaml index e5cb7215..b582fa6d 100644 --- a/charts/actions-runner-controller/values.yaml +++ b/charts/actions-runner-controller/values.yaml @@ -45,6 +45,8 @@ serviceAccount: podAnnotations: {} +podLabels: {} + podSecurityContext: {} # fsGroup: 2000 @@ -128,6 +130,7 @@ githubWebhookServer: # If not set and create is true, a name is generated using the fullname template name: "" podAnnotations: {} + podLabels: {} podSecurityContext: {} # fsGroup: 2000 securityContext: {}