Add spec.template.metadata.annotations to the k8s template

This commit is contained in:
Asim Aslam 2019-11-26 18:14:49 +00:00
parent 44dd0b1302
commit 3f3fd38601

View File

@ -40,6 +40,12 @@ spec:
{{ $key }}: "{{ $value }}"
{{- end }}
{{- end }}
annotations:
{{- with .Spec.Template.Metadata.Annotations }}
{{- range $key, $value := . }}
{{ $key }}: "{{ $value }}"
{{- end }}
{{- end }}
spec:
containers:
{{- with .Spec.Template.PodSpec.Containers }}