From c1d989fbf6534487e4a11c0c8b2f164b579ea8ec Mon Sep 17 00:00:00 2001 From: mkonkolowicz Date: Thu, 21 Oct 2021 10:24:43 -0400 Subject: [PATCH] Moved serviceAccountName to values (#75) * Moved serviceAccountName to values Co-authored-by: Konkolowicz --- charts/sorry-cypress/Chart.yaml | 2 +- charts/sorry-cypress/README.md | 1 + charts/sorry-cypress/templates/deployment-director.yml | 4 +++- charts/sorry-cypress/values.yaml | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/sorry-cypress/Chart.yaml b/charts/sorry-cypress/Chart.yaml index fac96b7..d3e2846 100644 --- a/charts/sorry-cypress/Chart.yaml +++ b/charts/sorry-cypress/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: sorry-cypress description: A Helm chart for Sorry Cypress type: application -version: 1.1.0 +version: 1.1.1 appVersion: 1.1.1 home: https://sorry-cypress.dev/ sources: diff --git a/charts/sorry-cypress/README.md b/charts/sorry-cypress/README.md index 85becb6..1aa8924 100644 --- a/charts/sorry-cypress/README.md +++ b/charts/sorry-cypress/README.md @@ -124,6 +124,7 @@ https://sorry-cypress.dev/director/configuration | Parameter | Description | Default | |---------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------| +| `director.serviceAccountName` | Service account to be assumed by the director | `director.image.repository` | Image repository | `agoldis/sorry-cypress-director` | | `director.image.tag` | Image tag | `` | | `director.image.pullPolicy` | Image pull policy | `Always` | diff --git a/charts/sorry-cypress/templates/deployment-director.yml b/charts/sorry-cypress/templates/deployment-director.yml index 418f9fe..c0e6214 100644 --- a/charts/sorry-cypress/templates/deployment-director.yml +++ b/charts/sorry-cypress/templates/deployment-director.yml @@ -109,7 +109,9 @@ spec: resources: {{- toYaml .Values.director.resources | nindent 10 }} restartPolicy: Always - serviceAccountName: "" + {{- with .Values.director.serviceAccountName }} + serviceAccountName: {{ . | quote }} + {{- end }} volumes: null {{- if .Values.director.initContainers }} initContainers: diff --git a/charts/sorry-cypress/values.yaml b/charts/sorry-cypress/values.yaml index 4e59312..be8a061 100644 --- a/charts/sorry-cypress/values.yaml +++ b/charts/sorry-cypress/values.yaml @@ -131,6 +131,7 @@ dashboard: # - chart-example.local director: + serviceAccountName: "default" image: repository: agoldis/sorry-cypress-director pullPolicy: Always