Unverified Commit 7445a606 authored by Dominik Rosiek's avatar Dominik Rosiek Committed by GitHub

[telegraf-operator] Fix certificate issue related to helm upgrade (#190)

* [telegraf-operator] Update certificate secret during upgrade * [telegraf-operator] Force to reload deployment in case of secret update * [telegraf-operator] Bump version to 1.1.3
parent cb39c54e
...@@ -31,7 +31,7 @@ type: application ...@@ -31,7 +31,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # 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. # to the chart and its templates, including the app version.
version: 1.1.2 version: 1.1.3
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. # incremented each time you make changes to the application.
......
...@@ -105,7 +105,7 @@ metadata: ...@@ -105,7 +105,7 @@ metadata:
labels: labels:
{{- include "telegraf-operator.labels" . | nindent 4 }} {{- include "telegraf-operator.labels" . | nindent 4 }}
annotations: annotations:
"helm.sh/hook": "pre-install" "helm.sh/hook": "pre-install,pre-upgrade"
"helm.sh/hook-delete-policy": "before-hook-creation" "helm.sh/hook-delete-policy": "before-hook-creation"
data: data:
tls.crt: {{ $cert.Cert | b64enc }} tls.crt: {{ $cert.Cert | b64enc }}
......
...@@ -14,6 +14,10 @@ spec: ...@@ -14,6 +14,10 @@ spec:
metadata: metadata:
labels: labels:
{{- include "telegraf-operator.selectorLabels" . | nindent 8 }} {{- include "telegraf-operator.selectorLabels" . | nindent 8 }}
{{- if eq .Values.certManager.enable false }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/tls.yml") . | sha256sum }}
{{- end }}
spec: spec:
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment