Skip to content

Commit

Permalink
swan: Add secret template for proxy https
Browse files Browse the repository at this point in the history
Add template to create TLS secret if the proxy https is enabled, instead
of the ingress deployed by the JupyterHub chart.
  • Loading branch information
PMax5 committed Dec 18, 2024
1 parent bd3817b commit 0c9711d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions swan/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,15 @@ data:
tls.key: {{ (required "helm --set swan.secrets.ingress.key=$(base64 -w0 <path>)" $.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 <path>)" $.Values.swan.secrets.proxy.https.cert) }}
tls.key: {{ (required "helm --set swan.secrets.proxy.https.key=$(base64 -w0 <path>)" $.Values.swan.secrets.proxy.https.key) }}
{{ end }}

0 comments on commit 0c9711d

Please sign in to comment.