Skip to content

[Bug]: ipFamilies list may not be rendered correctly in Service template #8709

@bj0rn

Description

@bj0rn

Version

edge

What Kubernetes platforms are you running on?

Kind

Steps to reproduce

ipFamilies is defined as a list in the values file, but it appears that the Helm chart currently only supports rendering a single value. It is defined here https://github.com/nginx/kubernetes-ingress/blob/main/charts/nginx-ingress/values.yaml#L502 and used here https://github.com/nginx/kubernetes-ingress/blob/main/charts/nginx-ingress/templates/controller-service.yaml#L42C3-L42C58.

In the Service template, ipFamilies seems to be rendered as a scalar rather than a list, which may prevent proper support for multiple IP families.

I would have expected ipFamilies to be rendered as a list, for example:

ipFamilies:
{{- range $ipFamily := .Values.controller.service.ipFamilies }}
  - {{ $ipFamily }}
{{- end }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogPull requests/issues that are backlog itemsbugAn issue reporting a potential bug

    Type

    No type

    Projects

    Status

    Done 🚀

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions