Skip to content

Commit 610f49e

Browse files
committed
moved globalConfigurationCustomName parameter to globalConfiguration.customName
1 parent ee5c86b commit 610f49e

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

charts/nginx-ingress/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ Build the args for the service binary.
292292
{{- if .Values.controller.globalConfiguration.create }}
293293
- -global-configuration=$(POD_NAMESPACE)/{{ include "nginx-ingress.controller.fullname" . }}
294294
{{- else }}
295-
{{- if .Values.controller.globalConfigurationCustomName }}
296-
- -global-configuration={{ .Values.controller.globalConfigurationCustomName }}
295+
{{- if .Values.controller.globalConfiguration.customName }}
296+
- -global-configuration={{ .Values.controller.globalConfiguration.customName }}
297297
{{- end }}
298298
{{- end }}
299299
{{- end }}

charts/nginx-ingress/values.schema.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -972,6 +972,14 @@
972972
false
973973
]
974974
},
975+
"customName": {
976+
"type": "string",
977+
"default": "",
978+
"title": "The customName Schema",
979+
"examples": [
980+
"the-namespace/the-name-of-the-global-configuration-custom-resource"
981+
]
982+
},
975983
"spec": {
976984
"type": "object",
977985
"default": {},
@@ -1042,14 +1050,6 @@
10421050
}
10431051
]
10441052
},
1045-
"globalConfigurationCustomName": {
1046-
"type": "string",
1047-
"default": "",
1048-
"title": "The globalConfigurationCustomName",
1049-
"examples": [
1050-
"the-namespace/the-name-of-the-global-configuration-custom-resource"
1051-
]
1052-
},
10531053
"enableSnippets": {
10541054
"type": "boolean",
10551055
"default": false,

charts/nginx-ingress/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ controller:
362362
## Creates the GlobalConfiguration custom resource. Requires controller.enableCustomResources.
363363
create: false
364364

365+
## customName: "the-namespace/the-name-of-the-global-configuration-custom-resource"
366+
## The name of the GlobalConfiguration custom resource to use instead of the one provided by default when create is set to false.
367+
365368
## The spec of the GlobalConfiguration for defining the global configuration parameters of the Ingress Controller.
366369
spec: {} ## Ensure both curly brackets are removed when adding listeners in YAML format.
367370
# listeners:
@@ -372,9 +375,6 @@ controller:
372375
# port: 5353
373376
# protocol: TCP
374377

375-
## globalConfigurationCustomName: "the-namespace/the-name-of-the-global-configuration-custom-resource"
376-
## The name of the GlobalConfiguration custom resource to use instead of the one provided by default when controller.globalConfiguration.create is set to false.
377-
378378
## Enable custom NGINX configuration snippets in Ingress, VirtualServer, VirtualServerRoute and TransportServer resources.
379379
enableSnippets: false
380380

0 commit comments

Comments
 (0)