feat: add git revision annotation to force pod restart on updates
This commit is contained in:
@@ -18,6 +18,10 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: storefront
|
app: storefront
|
||||||
|
annotations:
|
||||||
|
# Flux will substitute this with the actual git revision
|
||||||
|
# Changing this annotation forces pod restart on git updates
|
||||||
|
gitRevision: ${GIT_REVISION:-unknown}
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: clone
|
- name: clone
|
||||||
|
|||||||
Reference in New Issue
Block a user