Skip to content

Instantly share code, notes, and snippets.

@jeevanshu
Created May 22, 2020 06:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeevanshu/ac9728271c334e8c4899728854dad6d3 to your computer and use it in GitHub Desktop.
Save jeevanshu/ac9728271c334e8c4899728854dad6d3 to your computer and use it in GitHub Desktop.
Force deployment to get changes if configmap is modified by adding sha256 hash
template:
metadata:
labels:
app: app-name
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap/app-configmap.yaml") . | sha256sum }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment