Skip to content

Commit 76acfcd

Browse files
committed
fix: Only create service account in specific scenarios
1 parent e92a552 commit 76acfcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyterhub/templates/image-puller/serviceaccount.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{- /*
22
ServiceAccount for the pre-puller hook's image-awaiter-job
33
*/}}
4+
{{- if or (include "jupyterhub.imagePuller.daemonset.hook.install" .) .Values.prePuller.continuous.enabled -}}
45
{{- if .Values.prePuller.hook.serviceAccount.create -}}
5-
{{- if (include "jupyterhub.imagePuller.daemonset.hook.install" .) -}}
66
apiVersion: v1
77
kind: ServiceAccount
88
metadata:
@@ -16,4 +16,4 @@ metadata:
1616
{{- . | toYaml | nindent 4 }}
1717
{{- end }}
1818
{{- end }}
19-
{{- end }}
19+
{{- end }}

0 commit comments

Comments
 (0)