Skip to content

Commit ad0b923

Browse files
authored
Merge pull request #5582 from Graham42/pull-by-digest
Allow pulling images by digest
2 parents a53ef2b + 2205edb commit ad0b923

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

charts/ingress-nginx/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: ingress-nginx
3-
version: 2.2.0
3+
version: 2.3.0
44
appVersion: 0.32.0
55
home: https://github.com/kubernetes/ingress-nginx
66
description: Ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer

charts/ingress-nginx/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Parameter | Description | Default
4949
--- | --- | ---
5050
`controller.image.repository` | controller container image repository | `quay.io/kubernetes-ingress-controller/nginx-ingress-controller`
5151
`controller.image.tag` | controller container image tag | `0.30.0`
52+
`controller.image.digest` | controller container image digest | `""`
5253
`controller.image.pullPolicy` | controller container image pull policy | `IfNotPresent`
5354
`controller.image.runAsUser` | User ID of the controller process. Value depends on the Linux distribution used inside of the container image. | `101`
5455
`controller.containerPort.http` | The port that the controller container listens on for http connections. | `80`
@@ -164,6 +165,7 @@ Parameter | Description | Default
164165
`controller.admissionWebhooks.patch.enabled` | If true, will use a pre and post install hooks to generate a CA and certificate to use for the prometheus operator tls proxy, and patch the created webhooks with the CA. | `true`
165166
`controller.admissionWebhooks.patch.image.repository` | Repository to use for the webhook integration jobs | `jettech/kube-webhook-certgen`
166167
`controller.admissionWebhooks.patch.image.tag` | Tag to use for the webhook integration jobs | `v1.2.0`
168+
`controller.admissionWebhooks.patch.image.digest` | Digest to use for the webhook integration jobs | `""`
167169
`controller.admissionWebhooks.patch.image.pullPolicy` | Image pull policy for the webhook integration jobs | `IfNotPresent`
168170
`controller.admissionWebhooks.patch.priorityClassName` | Priority class for the webhook integration jobs | `""`
169171
`controller.admissionWebhooks.patch.podAnnotations` | Annotations for the webhook job pods | `{}`
@@ -183,6 +185,7 @@ Parameter | Description | Default
183185
`defaultBackend.enabled` | Use default backend component | `false`
184186
`defaultBackend.image.repository` | default backend container image repository | `k8s.gcr.io/defaultbackend-amd64`
185187
`defaultBackend.image.tag` | default backend container image tag | `1.5`
188+
`defaultBackend.image.digest` | default backend container image digest | `""`
186189
`defaultBackend.image.pullPolicy` | default backend container image pull policy | `IfNotPresent`
187190
`defaultBackend.image.runAsUser` | User ID of the controller process. Value depends on the Linux distribution used inside of the container image. By default uses nobody user. | `65534`
188191
`defaultBackend.extraArgs` | Additional default backend container arguments | `{}`

charts/ingress-nginx/templates/admission-webhooks/job-patch/job-createSecret.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ spec:
3232
{{- end }}
3333
containers:
3434
- name: create
35-
image: {{ .Values.controller.admissionWebhooks.patch.image.repository }}:{{ .Values.controller.admissionWebhooks.patch.image.tag }}
35+
{{- with .Values.controller.admissionWebhooks.patch.image }}
36+
image: "{{.repository}}{{- if (.digest) -}} @{{.digest}} {{- else -}} :{{ .tag }} {{- end -}}"
37+
{{- end }}
3638
imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }}
3739
args:
3840
- create

charts/ingress-nginx/templates/admission-webhooks/job-patch/job-patchWebhook.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ spec:
3232
{{- end }}
3333
containers:
3434
- name: patch
35-
image: {{ .Values.controller.admissionWebhooks.patch.image.repository }}:{{ .Values.controller.admissionWebhooks.patch.image.tag }}
35+
{{- with .Values.controller.admissionWebhooks.patch.image }}
36+
image: "{{.repository}}{{- if (.digest) -}} @{{.digest}} {{- else -}} :{{ .tag }} {{- end -}}"
37+
{{- end }}
3638
imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }}
3739
args:
3840
- patch

charts/ingress-nginx/templates/controller-daemonset.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ spec:
4747
{{- end }}
4848
containers:
4949
- name: controller
50-
image: {{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}
50+
{{- with .Values.controller.image }}
51+
image: "{{.repository}}{{- if (.digest) -}} @{{.digest}} {{- else -}} :{{ .tag }} {{- end -}}"
52+
{{- end }}
5153
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
5254
{{- if .Values.controller.lifecycle }}
5355
lifecycle: {{ toYaml .Values.controller.lifecycle | nindent 12 }}

charts/ingress-nginx/templates/controller-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ spec:
5151
{{- end }}
5252
containers:
5353
- name: controller
54-
image: {{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}
54+
{{- with .Values.controller.image }}
55+
image: "{{.repository}}{{- if (.digest) -}} @{{.digest}} {{- else -}} :{{ .tag }} {{- end -}}"
56+
{{- end }}
5557
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
5658
{{- if .Values.controller.lifecycle }}
5759
lifecycle: {{ toYaml .Values.controller.lifecycle | nindent 12 }}

charts/ingress-nginx/templates/default-backend-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ spec:
3636
{{- end }}
3737
containers:
3838
- name: {{ template "ingress-nginx.name" . }}-default-backend
39-
image: {{ .Values.defaultBackend.image.repository }}:{{ .Values.defaultBackend.image.tag }}
39+
{{- with .Values.defaultBackend.image }}
40+
image: "{{.repository}}{{- if (.digest) -}} @{{.digest}} {{- else -}} :{{ .tag }} {{- end -}}"
41+
{{- end }}
4042
imagePullPolicy: {{ .Values.defaultBackend.image.pullPolicy }}
4143
{{- if .Values.defaultBackend.extraArgs }}
4244
args:

0 commit comments

Comments
 (0)