Skip to content

Commit

Permalink
restart pods when config map changes (#326)
Browse files Browse the repository at this point in the history
* add config to helm chart to redeploy pods on config map changes

* revert version change
  • Loading branch information
nwsparks authored Jul 12, 2024
1 parent 649ec46 commit 23760f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions deploy/chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ helm delete --purge [RELEASE_NAME]
| Parameter | Description | Default |
|-----------|-------------|---------|
| `podAnnotations` | Pod annotations | {} |
| `podLabels` | Pod labels | {} |
| `securityContext.runAsNonRoot` | Container runs as a non-root user | true |
| `securityContext.runAsUser` | Container processes' UID to run the entrypoint | 101 |
| `securityContext.runAsGroup` | Container processes' GID to run the entrypoint | 101 |
Expand Down
7 changes: 4 additions & 3 deletions deploy/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ spec:
{{- include "kwatch.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "kwatch.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
Expand Down

0 comments on commit 23760f6

Please sign in to comment.