Add spec.template.metadata.annotations to the k8s template
This commit is contained in:
		| @@ -40,6 +40,12 @@ spec: | |||||||
|         {{ $key }}: "{{ $value }}" |         {{ $key }}: "{{ $value }}" | ||||||
|         {{- end }} |         {{- end }} | ||||||
|         {{- end }} |         {{- end }} | ||||||
|  |       annotations: | ||||||
|  |         {{- with .Spec.Template.Metadata.Annotations }} | ||||||
|  |         {{- range $key, $value := . }} | ||||||
|  |         {{ $key }}: "{{ $value }}" | ||||||
|  |         {{- end }} | ||||||
|  |         {{- end }} | ||||||
|     spec: |     spec: | ||||||
|       containers: |       containers: | ||||||
|       {{- with .Spec.Template.PodSpec.Containers }} |       {{- with .Spec.Template.PodSpec.Containers }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user