From c7d1227f63650cb9f915a7a2438d10d61f58d7f5 Mon Sep 17 00:00:00 2001 From: James Rawlings Date: Fri, 11 Oct 2019 21:19:23 +0100 Subject: [PATCH] feat: add an optional wildcard cert secret which is disabled by default but allows us to enable in an environment when needed --- env/templates/wildcardcert-secret.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 env/templates/wildcardcert-secret.yaml diff --git a/env/templates/wildcardcert-secret.yaml b/env/templates/wildcardcert-secret.yaml new file mode 100644 index 0000000..d543b27 --- /dev/null +++ b/env/templates/wildcardcert-secret.yaml @@ -0,0 +1,26 @@ +{{- if .Values.expose }} +{{- if .Values.expose.config }} +{{- if .Values.expose.config.tlsacme }} +{{- if eq .Values.expose.config.tlsacme "true" }} +apiVersion: v1 +data: + tls.crt: Zm9vIC1uCg== + tls.key: Zm9vIC1uCg== +kind: Secret +metadata: + annotations: +{{- if .Values.expose.production }} + replicator.v1.mittwald.de/replicate-from: jx/tls-{{ .Values.expose.config.domain | replace "." "-" }}-p +{{- else }} + replicator.v1.mittwald.de/replicate-from: jx/tls-{{ .Values.expose.config.domain | replace "." "-" }}-s +{{- end }} +{{- if .Values.expose.production }} + name: "tls-{{ .Values.expose.config.domain | replace "." "-" }}-p" +{{- else }} + name: "tls-{{ .Values.expose.config.domain | replace "." "-" }}-s" +{{- end }} +type: kubernetes.io/tls +{{- end }} +{{- end }} +{{- end }} +{{- end }}