From 0c9711dd986443d022781b2d4f92c4ec94a8c3d6 Mon Sep 17 00:00:00 2001 From: Pedro Maximino Date: Wed, 18 Dec 2024 13:32:16 +0100 Subject: [PATCH] swan: Add secret template for proxy https Add template to create TLS secret if the proxy https is enabled, instead of the ingress deployed by the JupyterHub chart. --- swan/templates/secrets.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/swan/templates/secrets.yaml b/swan/templates/secrets.yaml index afda13e..25e610d 100644 --- a/swan/templates/secrets.yaml +++ b/swan/templates/secrets.yaml @@ -22,3 +22,15 @@ data: tls.key: {{ (required "helm --set swan.secrets.ingress.key=$(base64 -w0 )" $.Values.swan.secrets.ingress.key) }} {{ end }} {{ end }} +--- +{{ if .Values.jupyterhub.proxy.https.enabled }} +apiVersion: v1 +kind: Secret +type: kubernetes.io/tls +metadata: + name: {{ .Values.jupyterhub.proxy.https.secret.name }} + namespace: {{ $.Release.Namespace }} +data: + tls.crt: {{ (required "helm --set swan.secrets.proxy.https.cert=$(base64 -w0 )" $.Values.swan.secrets.proxy.https.cert) }} + tls.key: {{ (required "helm --set swan.secrets.proxy.https.key=$(base64 -w0 )" $.Values.swan.secrets.proxy.https.key) }} +{{ end }} \ No newline at end of file