Skip to content

[Bug]: Cannot run a second ingresscontroller with a second different SA #7700

@NICK0TIN

Description

@NICK0TIN

Version

4.0.1

What Kubernetes platforms are you running on?

Openshift

Steps to reproduce

Via the OpenShift operatorhub I try to create 2 or more NginxIngress object that will trigger the helm chart to deploy the Nginx controller.

The 2nd controller I try to deploy fails, because the first SA "nginx-ingress" is created and managed by the first Helm chart.

I read that this can be configured by setting the values file:

controller:
  serviceAccount:
    ## Autogenerated if not set or set to "".
    name: nginx-ingress

However no matter the name given, the SA will always be created as nginx-ingress.

I wonder this could be due to:
charts/nginx-ingress/templates/controller-serviceaccount.yaml

where the SA is only create in this condition:

{{- if .Values.rbac.create }}

Should this not be .Values.controller.rbac.create as shown in the sample values file?

Steps to reproduce:

Create any NginxIngress on OpenShift and give a different name than nginx-ingress.

controller:
  serviceAccount:
    ## Autogenerated if not set or set to "".
    name: nginx-ingress-test

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue reporting a potential bugneeds triageAn issue that needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions