As the command contains a colon, it must be handled in the commands binary as opposed to subcommands. Also include a simple bats test.
17 lines
565 B
YAML
17 lines
565 B
YAML
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
annotations:
|
|
dokku.com/managed: "true"
|
|
{{- if and $.Values.global.annotations $.Values.global.annotations.serviceaccount }}
|
|
{{- range $k, $v := $.Values.global.annotations.serviceaccount }}
|
|
{{ $k }}: {{ $v | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
labels:
|
|
app.kubernetes.io/instance: service-account
|
|
app.kubernetes.io/name: service-account
|
|
app.kubernetes.io/part-of: "{{ $.Values.global.app_name }}"
|
|
name: "{{ $.Values.global.app_name }}"
|
|
namespace: "{{ $.Values.global.namespace }}"
|