refactor: use a helper function for printing out both labels and annotations
This commit is contained in:
1 parent
065d4ef828
commit
7a5bd7ee0f
12 files changed
+82
-105
No files matched your search
@@ -3,14 +3,11 @@ 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 }}
|
||||
{{ include "print.annotations" (dict "config" $.Values.global "key" "serviceaccount") | indent 4 }}
|
||||
labels:
|
||||
app.kubernetes.io/instance: service-account
|
||||
app.kubernetes.io/name: service-account
|
||||
app.kubernetes.io/part-of: "{{ $.Values.global.app_name }}"
|
||||
{{ include "print.labels" (dict "config" $.Values.global "key" "serviceaccount") | indent 4 }}
|
||||
name: "{{ $.Values.global.app_name }}"
|
||||
namespace: "{{ $.Values.global.namespace }}"
|
||||
Reference in new issue
Block a user