Skip to content

Commit

Permalink
chart: fix pink daemonset image handling
Browse files Browse the repository at this point in the history
The schema already defined everything needed to manage the image pull
policy as well as pull secrets. No need to reinvent the wheel here.
  • Loading branch information
sgaist committed Sep 16, 2022
1 parent 23a4b7a commit 2c958a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions helm-chart/binderhub/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,6 @@ properties:
additionalProperties: false
properties:
image: *image-spec
imagePullSecrets:
type: array
description: |
Image pull secrets to download images for private images
lifecycle: *lifecycle-spec
extraVolumes: *extraVolumes-spec
extraVolumeMounts: *extraVolumeMounts-spec
Expand Down
4 changes: 2 additions & 2 deletions helm-chart/binderhub/templates/pink/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
initContainers:
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- with .Values.pink.imagePullSecrets }}
{{- with .Values.pink.daemonset.image.pullSecrets }}
imagePullSecrets:
{{- . | toYaml | nindent 8 }}
{{- end }}
Expand All @@ -42,7 +42,7 @@ spec:
containers:
- name: pink
image: {{ .Values.pink.daemonset.image.name }}:{{ .Values.pink.daemonset.image.tag }}
imagePullPolicy: {{ .Values.pink.daemonset.imagePullPolicy }}
imagePullPolicy: {{ .Values.pink.daemonset.image.pullPolicy }}

resources:
{{- .Values.pink.resources | toYaml | nindent 10 }}
Expand Down
2 changes: 0 additions & 2 deletions helm-chart/binderhub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,6 @@ pink:
image:
name: quay.io/jupyterhub/repo2podman
tag: latest
imagePullPolicy: IfNotPresent
imagePullSecrets: []
lifecycle: {}
extraVolumes: []
extraVolumeMounts: []
Expand Down

0 comments on commit 2c958a0

Please sign in to comment.