Skip to content

Commit

Permalink
auto restart deployment when config changed (#96)
Browse files Browse the repository at this point in the history
* auto restart deployment when config changed

* bump version
  • Loading branch information
LeoQuote authored Aug 12, 2024
1 parent c821904 commit 2d38a27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/nonebot/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 3 additions & 2 deletions charts/nonebot/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ spec:
{{- include "nonebot.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
checksum/config: {{ .Values.dotenv | toString | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
labels:
{{- include "nonebot.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
Expand Down

0 comments on commit 2d38a27

Please sign in to comment.