Skip to content

Commit

Permalink
Deployment: Align image.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko committed Mar 15, 2023
1 parent 58fae45 commit 7932078
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s
- Deployment: Align `name` & `namespace`.
- Deployment: Align indention.
- Pod Security Policy: Disable `privileged`.
- Deployment: Align `image`.

### Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ spec:
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
containers:
- name: {{ .Values.controller.containerName }}
image: "{{ .Values.image.registry }}/{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}"
{{- with .Values.controller.image }}
image: "{{- if .repository -}}{{ .repository }}{{ else }}{{ $.Values.image.registry }}/{{ include "ingress-nginx.image" . }}{{- end -}}:{{ .tag }}{{ include "ingress-nginx.imageDigest" . }}"
{{- end }}
imagePullPolicy: {{ .Values.controller.image.pullPolicy }}
args:
- /nginx-ingress-controller
- --configmap={{ .Release.Namespace }}/{{ include "ingress-nginx.fullname" . }}
Expand Down
12 changes: 12 additions & 0 deletions helm/nginx-ingress-controller-app/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,18 @@
"chroot": {
"type": "boolean"
},
"digest": {
"type": "string"
},
"digestChroot": {
"type": "string"
},
"image": {
"type": "string"
},
"pullPolicy": {
"type": "string"
},
"repository": {
"type": "string"
},
Expand Down
15 changes: 7 additions & 8 deletions helm/nginx-ingress-controller-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,17 @@ controller:
image:
## Keep false as default for now!
chroot: false

# controller.image.repository
repository: giantswarm/ingress-nginx-controller

# controller.image.tag
# When updating tag make sure to also keep appVersion in Chart.yaml in sync
image: giantswarm/ingress-nginx-controller
## for backwards compatibility consider setting the full image url via the repository value below
## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
## repository:
tag: v1.4.0

digest: ""
digestChroot: ""
pullPolicy: IfNotPresent
# www-data -> uid 101
runAsUser: 101
allowPrivilegeEscalation: true

# -- Use an existing PSP instead of creating one
existingPsp: ""
# -- Configures the controller container name
Expand Down

0 comments on commit 7932078

Please sign in to comment.