Skip to content

Commit

Permalink
nginxinc#6679 add globalConfigurationCustomName parameter to controll…
Browse files Browse the repository at this point in the history
…er configuration
  • Loading branch information
frantsao committed Oct 17, 2024
1 parent 5108b30 commit 44271eb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/nginx-ingress/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ Build the args for the service binary.
- -default-https-listener-port={{ .Values.controller.defaultHTTPSListenerPort}}
{{- if .Values.controller.globalConfiguration.create }}
- -global-configuration=$(POD_NAMESPACE)/{{ include "nginx-ingress.controller.fullname" . }}
{{- else }}
{{- if .Values.controller.globalConfigurationCustomName }}
- -global-configuration={{ .Values.controller.globalConfigurationCustomName }}
{{- end }}
{{- end }}
{{- end }}
- -ready-status={{ .Values.controller.readyStatus.enable }}
Expand Down
8 changes: 8 additions & 0 deletions charts/nginx-ingress/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,14 @@
}
]
},
"globalConfigurationCustomName": {
"type": "string",
"default": "",
"title": "The globalConfigurationCustomName",
"examples": [
"the-namespace/the-name-of-the-global-configuration-custom-resource"
]
},
"enableSnippets": {
"type": "boolean",
"default": false,
Expand Down
4 changes: 4 additions & 0 deletions charts/nginx-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ controller:
# port: 5353
# protocol: TCP

## globalConfigurationCustomName: "the-namespace/the-name-of-the-global-configuration-custom-resource"
## The name of the GlobalConfiguration custom resource to use instead of the one provided by default when controller.globalConfiguration.create is set to false.
## See: https://github.com/nginxinc/kubernetes-ingress/tree/v3.6.2/examples/custom-resources/custom-listeners#prerequisites

## Enable custom NGINX configuration snippets in Ingress, VirtualServer, VirtualServerRoute and TransportServer resources.
enableSnippets: false

Expand Down

0 comments on commit 44271eb

Please sign in to comment.