From 2d38a277952bb6960554a3651706972a9b39b5b3 Mon Sep 17 00:00:00 2001 From: Leo Q Date: Mon, 12 Aug 2024 16:42:39 +0800 Subject: [PATCH] auto restart deployment when config changed (#96) * auto restart deployment when config changed * bump version --- charts/nonebot/Chart.yaml | 2 +- charts/nonebot/templates/deployment.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/nonebot/Chart.yaml b/charts/nonebot/Chart.yaml index 71c161a..f05952e 100644 --- a/charts/nonebot/Chart.yaml +++ b/charts/nonebot/Chart.yaml @@ -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 diff --git a/charts/nonebot/templates/deployment.yaml b/charts/nonebot/templates/deployment.yaml index 2c97c6d..65e4322 100644 --- a/charts/nonebot/templates/deployment.yaml +++ b/charts/nonebot/templates/deployment.yaml @@ -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 }}