Skip to content

Commit

Permalink
Merge pull request #3621 from manics/extraImagesPullPolicy
Browse files Browse the repository at this point in the history
Add pullPolicy to pre-pulled extraImages
  • Loading branch information
consideRatio authored Feb 10, 2025
2 parents 6fd45aa + 3984345 commit 8637cc8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jupyterhub/templates/image-puller/_helpers-daemonset.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ spec:
{{- range $k, $v := .Values.prePuller.extraImages }}
- name: image-pull-{{ $k }}
image: {{ $v.name }}:{{ $v.tag }}
{{- with $v.pullPolicy }}
imagePullPolicy: {{ . }}
{{- end }}
command:
- /bin/sh
- -c
Expand Down
3 changes: 2 additions & 1 deletion jupyterhub/values.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ properties:
v1.11.1
zhy270a
```
pullPolicy:
pullPolicy: &imagePullPolicy
enum: [null, "", IfNotPresent, Always, Never]
description: |
Configures the Pod's `spec.imagePullPolicy`.
Expand Down Expand Up @@ -2921,6 +2921,7 @@ properties:
type: string
tag:
type: string
pullPolicy: *imagePullPolicy
containerSecurityContext: *containerSecurityContext-spec
pause:
type: object
Expand Down
1 change: 1 addition & 0 deletions tools/templates/lint-and-validate-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ prePuller:
mockImage2:
name: mock-user/mock-image2
tag: mock-tag
pullPolicy: Always

ingress:
enabled: true
Expand Down

0 comments on commit 8637cc8

Please sign in to comment.