This is an automated email from the ASF dual-hosted git repository.

kvn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-helm-chart.git


The following commit(s) were added to refs/heads/master by this push:
     new fac1e1d  fix: checksum not working without podAnnotations (#29)
fac1e1d is described below

commit fac1e1d81eaa564e0ac9ca4c9e8075cec4474f98
Author: Jun <[email protected]>
AuthorDate: Thu Feb 4 23:55:46 2021 +0800

    fix: checksum not working without podAnnotations (#29)
---
 charts/apisix/Chart.yaml                | 3 +--
 charts/apisix/templates/deployment.yaml | 6 +++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/charts/apisix/Chart.yaml b/charts/apisix/Chart.yaml
index 9cf6a14..5d3c785 100644
--- a/charts/apisix/Chart.yaml
+++ b/charts/apisix/Chart.yaml
@@ -31,7 +31,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.1
+version: 0.1.2
 
 # 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
@@ -43,4 +43,3 @@ dependencies:
     version: 5.2.1
     repository: https://charts.bitnami.com/bitnami
     condition: etcd.enabled
-
diff --git a/charts/apisix/templates/deployment.yaml 
b/charts/apisix/templates/deployment.yaml
index 53de003..aaba932 100644
--- a/charts/apisix/templates/deployment.yaml
+++ b/charts/apisix/templates/deployment.yaml
@@ -30,11 +30,11 @@ spec:
       {{- include "apisix.selectorLabels" . | nindent 6 }}
   template:
     metadata:
-    {{- with .Values.podAnnotations }}
       annotations:
-        {{- toYaml . | nindent 8 }}
         checksum/config: {{ include (print $.Template.BasePath 
"/configmap.yaml") . | sha256sum }}
-    {{- end }}
+        {{- with .Values.podAnnotations }}
+        {{- toYaml . | nindent 8 }}
+        {{- end }}
       labels:
         {{- include "apisix.selectorLabels" . | nindent 8 }}
     spec:

Reply via email to