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
# 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.
version: 1.1.2
version: 1.1.3
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
......
......@@ -105,7 +105,7 @@ metadata:
labels:
{{- include "telegraf-operator.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": "pre-install"
"helm.sh/hook": "pre-install,pre-upgrade"
"helm.sh/hook-delete-policy": "before-hook-creation"
data:
tls.crt: {{ $cert.Cert | b64enc }}
......
......@@ -14,6 +14,10 @@ spec:
metadata:
labels:
{{- include "telegraf-operator.selectorLabels" . | nindent 8 }}
{{- if eq .Values.certManager.enable false }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/tls.yml") . | sha256sum }}
{{- end }}
spec:
containers:
- 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