example: added kubernetes example with Helm
Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
12
examples/kubernetes/testdata/mychart/templates/serviceaccount.yaml
vendored
Normal file
12
examples/kubernetes/testdata/mychart/templates/serviceaccount.yaml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "mychart.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "mychart.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user