-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed serviceaccount annotations (#1972)
* fixed serviceaccount annotations Signed-off-by: Andrew Chubatiuk <[email protected]> * bump chart version Signed-off-by: Andrew Chubatiuk <[email protected]> * docs fix Signed-off-by: Andrew Chubatiuk <[email protected]> --------- Signed-off-by: Andrew Chubatiuk <[email protected]>
- Loading branch information
1 parent
e9dbdfb
commit 1d3e385
Showing
6 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
charts/spark-operator-chart/templates/spark-serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
{{- if .Values.serviceAccounts.spark.create -}} | ||
{{- if .Values.serviceAccounts.spark.create }} | ||
{{- range $sparkJobNamespace := .Values.sparkJobNamespaces | default (list .Release.Namespace) }} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "spark.serviceAccountName" $ }} | ||
namespace: {{ $sparkJobNamespace }} | ||
labels: | ||
{{- include "spark-operator.labels" $ | nindent 4 }} | ||
{{- with $.Values.serviceAccounts.spark.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
annotations: {{ toYaml . | nindent 4 }} | ||
{{- end }} | ||
labels: {{ include "spark-operator.labels" $ | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters