diff --git a/charts/airflow/README.md b/charts/airflow/README.md index ad8d3c92..e5f7e711 100644 --- a/charts/airflow/README.md +++ b/charts/airflow/README.md @@ -439,6 +439,7 @@ Parameter | Description | Default --- | --- | --- `serviceAccount.create` | if a Kubernetes ServiceAccount is created | `true` `serviceAccount.name` | the name of the ServiceAccount | `""` +`serviceAccount.automountServiceAccountToken` | mount serviceAccountToken? | `false` `serviceAccount.annotations` | annotations for the ServiceAccount | `{}` @@ -573,4 +574,4 @@ Parameter | Description | Default `prometheusRule.additionalLabels` | labels for PrometheusRule, so that Prometheus can select it | `{}` `prometheusRule.groups` | alerting rules for Prometheus | `[]` - + \ No newline at end of file diff --git a/charts/airflow/templates/rbac/airflow-serviceaccount.yaml b/charts/airflow/templates/rbac/airflow-serviceaccount.yaml index 9ec7056c..10487673 100644 --- a/charts/airflow/templates/rbac/airflow-serviceaccount.yaml +++ b/charts/airflow/templates/rbac/airflow-serviceaccount.yaml @@ -1,6 +1,7 @@ {{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount +automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }} metadata: name: {{ include "airflow.serviceAccountName" . }} {{- if .Values.serviceAccount.annotations }} diff --git a/charts/airflow/values.yaml b/charts/airflow/values.yaml index 53eaeed3..1b82b8d2 100644 --- a/charts/airflow/values.yaml +++ b/charts/airflow/values.yaml @@ -1785,6 +1785,9 @@ serviceAccount: ## name: "" + ## mount the service account token + automountServiceAccountToken: false + ## annotations for the ServiceAccount ## ## ____ EXAMPLE _______________