Skip to content

Commit

Permalink
fix: jupyter-server (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
echarles authored Jan 14, 2025
1 parent d1d93b6 commit 314419a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
7 changes: 7 additions & 0 deletions charts/jupyter-server/templates/_helpers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ Define the name of the client service for jupyter-server.
{{- define "jupyter-server.service-name" -}}
{{- printf "%s-%s" (include "jupyter-server.fullname" .) "svc" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Define the value for the datalayer run host.
*/}}
{{- define "jupyter-server.runHost" -}}
{{- printf "%s" .Values.server.env.DATALAYER_RUN_URL | replace "https://" "" -}}
{{- end -}}
6 changes: 3 additions & 3 deletions charts/jupyter-server/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ spec:
ingressClassName: datalayer-traefik
tls:
- hosts:
- {{ .Values.server.env.DATALAYER_RUN_URL }}
secretName: {{ .Values.server.env.DATALAYER_RUN_URL }}-datalayer-api-cert-secret
- {{ template "jupyter-server.runHost" . }}
secretName: {{ template "jupyter-server.runHost" . }}-datalayer-api-cert-secret
rules:
- host: {{ .Values.server.env.DATALAYER_RUN_URL }}
- host: {{ template "jupyter-server.runHost" . }}
http:
paths:
- path: /api/jupyter-server
Expand Down
5 changes: 0 additions & 5 deletions charts/jupyter-server/values-any.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
server:
clusterType: any
image: datalayer/jupyter-server:0.0.8
imagePullPolicy: Always
sidecar:
image: datalayer/whoami:0.0.6
replicaCount: 1
2 changes: 1 addition & 1 deletion charts/jupyter-server/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
server:
image: datalayer/jupyter-server:0.0.8
image: datalayer/jupyter-server:0.0.9
replicaCount: 1
sidecar:
image: datalayer/whoami:0.0.6
Expand Down

0 comments on commit 314419a

Please sign in to comment.