Skip to content

Commit

Permalink
Put service account into pre-install hook. (#1155)
Browse files Browse the repository at this point in the history
This enables users to install the chart using ArgoCD without setting special values.

This solves #1143 without requiring setting special values in values.yaml like the PR #1145 requires.
  • Loading branch information
tandrup authored Mar 7, 2021
1 parent 9a6e667 commit 9788c1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/spark-operator-chart/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "spark-operator.serviceAccountName" . }}
annotations:
"helm.sh/hook": pre-install
labels:
{{- include "spark-operator.labels" . | nindent 4 }}
{{- end }}

0 comments on commit 9788c1e

Please sign in to comment.