fix(common): always force a rename and recreate of cert-secrets on update (#1422)

* fix(common): always force a rename and recreate of cert-secrets on update

* hmm

* adapt tests
This commit is contained in:
Kjeld Schouten-Lebbing
2021-11-30 00:49:16 +01:00
committed by GitHub
parent 70df160dd3
commit daee087f81
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 8.9.4
version: 8.9.5
@@ -85,7 +85,7 @@ spec:
- {{ tpl . $ | quote }}
{{- end }}
{{- if $tlsValues.scaleCert }}
secretName: {{ ( printf "%v-%v-%v-%v-%v" $ingressName "tls" $index "ixcert" $tlsValues.scaleCert ) }}
secretName: {{ ( printf "%v-%v-%v-%v-%v-%v" $ingressName "tls" $index "ixcert" $tlsValues.scaleCert $.Release.Revision ) }}
{{- else if .secretName }}
secretName: {{ tpl .secretName $ | quote}}
{{- end }}
@@ -20,7 +20,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ $secretName }}
name: {{ $secretName }}-{{ .Release.Revision }}
labels: {{ include "common.labels" . | nindent 4 }}
type: kubernetes.io/tls
data: