File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 90
90
{ {- /* A hack to avoid issues from invoking this from a parent Helm chart. */} }
91
91
{ {- $existing_secret := .Values.hub.existingSecret } }
92
92
{ {- if ne .Chart.Name " jupyterhub" } }
93
- { {- $existing_secret = .Values.jupyterhub.hub.existingSecret } }
93
+ { {- if .Values.jupyterhub } }
94
+ { {- $existing_secret = .Values.jupyterhub.hub.existingSecret } }
95
+ { {- end } }
94
96
{ {- end } }
95
97
{ {- if $existing_secret } }
96
98
{ {- $existing_secret } }
Original file line number Diff line number Diff line change @@ -35,12 +35,15 @@ metadata:
35
35
{{- end }}
36
36
spec :
37
37
selector :
38
+ # This service will target the autohttps pod if autohttps is configured, and
39
+ # the proxy pod if not. When autohttps is configured, the service proxy-http
40
+ # will be around to target the proxy pod directly.
38
41
{{- if $autoHTTPS }}
39
- component : autohttps
42
+ {{- $_ := merge (dict "componentLabel" "autohttps") . -}}
43
+ {{- include "jupyterhub.matchLabels" $_ | nindent 4 }}
40
44
{{- else }}
41
- component : proxy
45
+ {{- include "jupyterhub.matchLabels" . | nindent 4 }}
42
46
{{- end }}
43
- release : {{ .Release.Name }}
44
47
ports :
45
48
{{- if $HTTPS }}
46
49
- name : https
You can’t perform that action at this time.
0 commit comments