diff --git a/charts/actions-runner-controller/templates/deployment.yaml b/charts/actions-runner-controller/templates/deployment.yaml index d2f602ca..b6501885 100644 --- a/charts/actions-runner-controller/templates/deployment.yaml +++ b/charts/actions-runner-controller/templates/deployment.yaml @@ -105,17 +105,16 @@ spec: key: github_app_private_key name: {{ include "actions-runner-controller.secretName" . }} optional: true - {{- if .Values.authSecret.github_basicauth_username }} + {{- if .Values.authSecret.github_basicauth_username }} - name: GITHUB_BASICAUTH_USERNAME value: {{ .Values.authSecret.github_basicauth_username }} {{- end }} - {{- if .Values.authSecret.github_basicauth_password }} - name: GITHUB_BASICAUTH_PASSWORD valueFrom: secretKeyRef: key: github_basicauth_password name: {{ include "actions-runner-controller.secretName" . }} - {{- end }} + optional: true {{- end }} {{- range $key, $val := .Values.env }} - name: {{ $key }} diff --git a/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml b/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml index 6dbb428c..fd05a181 100644 --- a/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml +++ b/charts/actions-runner-controller/templates/githubwebhook.deployment.yaml @@ -95,17 +95,16 @@ spec: key: github_app_private_key name: {{ include "actions-runner-controller.githubWebhookServerSecretName" . }} optional: true - {{- if .Values.authSecret.github_basicauth_username }} + {{- if .Values.authSecret.github_basicauth_username }} - name: GITHUB_BASICAUTH_USERNAME value: {{ .Values.authSecret.github_basicauth_username }} {{- end }} - {{- if .Values.authSecret.github_basicauth_password }} - name: GITHUB_BASICAUTH_PASSWORD valueFrom: secretKeyRef: key: github_basicauth_password name: {{ include "actions-runner-controller.secretName" . }} - {{- end }} + optional: true {{- end }} {{- range $key, $val := .Values.githubWebhookServer.env }} - name: {{ $key }}