annotation needs to be in the template metadata

This commit is contained in:
ducoterra
2020-12-16 11:19:18 -05:00
parent 765b006285
commit 81edf4bdac

View File

@@ -2,8 +2,6 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
selector:
matchLabels:
@@ -12,6 +10,8 @@ spec:
metadata:
labels:
app: {{ .Release.Name }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
spec:
containers:
- name: {{ .Release.Name }}