diff --git a/charts/ingress-nginx/templates/_helpers.tpl b/charts/ingress-nginx/templates/_helpers.tpl index 8cd49bd28..05a031cbd 100644 --- a/charts/ingress-nginx/templates/_helpers.tpl +++ b/charts/ingress-nginx/templates/_helpers.tpl @@ -259,7 +259,7 @@ Extra modules. - name: {{ .name }} image: {{ printf "%s/%s:%s" .image.registry .image.image .image.tag }}{{ include "ingress-nginx.imageDigest" .image }} command: - {{- if .distroless }} + {{- if .image.distroless }} - /init_module {{- else }} - sh diff --git a/charts/ingress-nginx/values.yaml b/charts/ingress-nginx/values.yaml index 721820e2a..75f4885be 100644 --- a/charts/ingress-nginx/values.yaml +++ b/charts/ingress-nginx/values.yaml @@ -591,7 +591,7 @@ controller: # registry: registry.k8s.io # image: ingress-nginx/mytestmodule # tag: latest - # distroless: false + # distroless: false # containerSecurityContext: # runAsNonRoot: true # runAsUser: @@ -616,7 +616,7 @@ controller: image: ingress-nginx/opentelemetry tag: "v20230721-3e2062ee5" digest: sha256:13bee3f5223883d3ca62fee7309ad02d22ec00ff0d7033e3e9aca7a9f60fd472 - distroless: true + distroless: true containerSecurityContext: runAsNonRoot: true # -- The image's default user, inherited from its base image `cgr.dev/chainguard/static`.