mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/contour] Don't regenerate self-signed certs on upgrade (#14615)
Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
This commit is contained in:
@@ -25,4 +25,4 @@ sources:
|
|||||||
- https://github.com/envoyproxy/envoy
|
- https://github.com/envoyproxy/envoy
|
||||||
- https://github.com/bitnami/containers/tree/main/bitnami/contour
|
- https://github.com/bitnami/containers/tree/main/bitnami/contour
|
||||||
- https://projectcontour.io
|
- https://projectcontour.io
|
||||||
version: 10.2.0
|
version: 10.2.1
|
||||||
|
|||||||
@@ -21,12 +21,13 @@ data:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.ingress.tls .Values.ingress.selfSigned }}
|
{{- if and .Values.ingress.tls .Values.ingress.selfSigned }}
|
||||||
|
{{- $secretName := printf "%s-tls" .Values.ingress.hostname }}
|
||||||
{{- $ca := genCA "odoo-ca" 365 }}
|
{{- $ca := genCA "odoo-ca" 365 }}
|
||||||
{{- $cert := genSignedCert .Values.ingress.hostname nil (list .Values.ingress.hostname) 365 $ca }}
|
{{- $cert := genSignedCert .Values.ingress.hostname nil (list .Values.ingress.hostname) 365 $ca }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ printf "%s-tls" .Values.ingress.hostname }}
|
name: {{ $secretName }}
|
||||||
namespace: {{ include "common.names.namespace" . | quote }}
|
namespace: {{ include "common.names.namespace" . | quote }}
|
||||||
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
||||||
{{- if .Values.commonLabels }}
|
{{- if .Values.commonLabels }}
|
||||||
@@ -37,8 +38,8 @@ metadata:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
type: kubernetes.io/tls
|
type: kubernetes.io/tls
|
||||||
data:
|
data:
|
||||||
tls.crt: {{ $cert.Cert | b64enc | quote }}
|
tls.crt: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "tls.crt" "defaultValue" $cert.Cert "context" $) }}
|
||||||
tls.key: {{ $cert.Key | b64enc | quote }}
|
tls.key: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "tls.key" "defaultValue" $cert.Key "context" $) }}
|
||||||
ca.crt: {{ $ca.Cert | b64enc | quote }}
|
ca.crt: {{ include "common.secrets.lookup" (dict "secret" $secretName "key" "ca.crt" "defaultValue" $ca.Cert "context" $) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user