updated values.yaml and templates to have separate values for registry and image with container images, left repository value for backwards compatability (#7095)
This commit is contained in:
parent
b3dfee6ada
commit
f6dbd93865
6 changed files with 17 additions and 8 deletions
|
@ -33,7 +33,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: create
|
- name: create
|
||||||
{{- with .Values.controller.admissionWebhooks.patch.image }}
|
{{- with .Values.controller.admissionWebhooks.patch.image }}
|
||||||
image: "{{.repository}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }}
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -33,7 +33,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: patch
|
- name: patch
|
||||||
{{- with .Values.controller.admissionWebhooks.patch.image }}
|
{{- with .Values.controller.admissionWebhooks.patch.image }}
|
||||||
image: "{{.repository}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.controller.admissionWebhooks.patch.image.pullPolicy }}
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -64,7 +64,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Values.controller.containerName }}
|
- name: {{ .Values.controller.containerName }}
|
||||||
{{- with .Values.controller.image }}
|
{{- with .Values.controller.image }}
|
||||||
image: "{{.repository}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
||||||
{{- if .Values.controller.lifecycle }}
|
{{- if .Values.controller.lifecycle }}
|
||||||
|
|
|
@ -68,7 +68,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Values.controller.containerName }}
|
- name: {{ .Values.controller.containerName }}
|
||||||
{{- with .Values.controller.image }}
|
{{- with .Values.controller.image }}
|
||||||
image: "{{.repository}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
|
||||||
{{- if .Values.controller.lifecycle }}
|
{{- if .Values.controller.lifecycle }}
|
||||||
|
|
|
@ -39,7 +39,7 @@ spec:
|
||||||
containers:
|
containers:
|
||||||
- name: {{ template "ingress-nginx.name" . }}-default-backend
|
- name: {{ template "ingress-nginx.name" . }}-default-backend
|
||||||
{{- with .Values.defaultBackend.image }}
|
{{- with .Values.defaultBackend.image }}
|
||||||
image: "{{.repository}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ .registry }}/{{ .image }}{{- end -}}:{{ .tag }}{{- if (.digest) -}} @{{.digest}} {{- end -}}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.defaultBackend.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.defaultBackend.image.pullPolicy }}
|
||||||
{{- if .Values.defaultBackend.extraArgs }}
|
{{- if .Values.defaultBackend.extraArgs }}
|
||||||
|
|
|
@ -10,7 +10,10 @@
|
||||||
controller:
|
controller:
|
||||||
name: controller
|
name: controller
|
||||||
image:
|
image:
|
||||||
repository: k8s.gcr.io/ingress-nginx/controller
|
registry: k8s.gcr.io
|
||||||
|
image: ingress-nginx/controller
|
||||||
|
# for backwards compatibility setting full image url via repository value
|
||||||
|
repository:
|
||||||
tag: "v0.46.0"
|
tag: "v0.46.0"
|
||||||
digest: sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
|
digest: sha256:52f0058bed0a17ab0fb35628ba97e8d52b5d32299fbc03cc0f6c7b9ff036b61a
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
@ -514,7 +517,10 @@ controller:
|
||||||
patch:
|
patch:
|
||||||
enabled: true
|
enabled: true
|
||||||
image:
|
image:
|
||||||
repository: docker.io/jettech/kube-webhook-certgen
|
registry: docker.io
|
||||||
|
image: jettech/kube-webhook-certgen
|
||||||
|
# for backwards compatibility setting full image url via repository value
|
||||||
|
repository:
|
||||||
tag: v1.5.1
|
tag: v1.5.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
## Provide a priority class name to the webhook patching job
|
## Provide a priority class name to the webhook patching job
|
||||||
|
@ -631,7 +637,10 @@ defaultBackend:
|
||||||
|
|
||||||
name: defaultbackend
|
name: defaultbackend
|
||||||
image:
|
image:
|
||||||
repository: k8s.gcr.io/defaultbackend-amd64
|
registry: k8s.gcr.io
|
||||||
|
image: defaultbackend-amd64
|
||||||
|
# for backwards compatibility setting full image url via repository value
|
||||||
|
repository:
|
||||||
tag: "1.5"
|
tag: "1.5"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# nobody user -> uid 65534
|
# nobody user -> uid 65534
|
||||||
|
|
Loading…
Reference in a new issue