Skip to content

Helm GlobalConfiguration Argument #3753

@Seneti42

Description

@Seneti42

I'm a bit confused as to how the global configuration argument is being set by the Helm chart templates and would appreciate someone explaining to me how it works or if I'm doing something wrong.

When setting controller.globalConfiguration.create to true, the template creates a globalConfiguration custom resource with the contents of the controller.globalConfiguration.spec. The globalConfiguration resource it creates is named using the nginx-ingress.fullname value:

controller-globalconfiguration.yaml template
image

However when the argument -global-congfiguration is set during the deployment of the controller to tell the controller which globalConfiguration resource to use, it is using nginx-ingress.name:

controller-deployment.yaml template
image

When I then run the helm to deploy the controller with a globalConfiguration the argument is telling the controller to look for a globalConfiguration resource name that doesn't exist:

Helm created deployment
image
image

Helm created globalConfiguration
image

Apologies in advance I'm relatively new to Kubernetes and Helm, but is this by design, am I doing something wrong or is there an issue with the templates?

Thanks for your help.

Metadata

Metadata

Assignees

Labels

bugAn issue reporting a potential bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions