Skip to content

Commit 904bd55

Browse files
committed
controller-service.yaml - option for uppercase/lowercase appProtocol
values.yaml - adding default as lowercase value for appProtocol http/https
1 parent 4967463 commit 904bd55

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

charts/ingress-nginx/Chart.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
annotations:
22
artifacthub.io/changes: |
3-
- "Added a doc line to the missing helm value service.internal.loadBalancerIP (#9406)"
4-
- "feat(helm): Add loadBalancerClass (#9562)"
5-
- "added helmshowvalues example (#10019)"
6-
- "Update Ingress-Nginx version controller-v1.8.1"
3+
- "Optional uppercase falue of appProtocol for controller service"
4+
- "Making appProtocol available also on GKE k8s"
75
artifacthub.io/prerelease: "false"
86
apiVersion: v2
97
appVersion: 1.8.1
@@ -23,4 +21,4 @@ maintainers:
2321
name: ingress-nginx
2422
sources:
2523
- https://github.com/kubernetes/ingress-nginx
26-
version: 4.7.1
24+
version: 4.7.2

charts/ingress-nginx/templates/controller-service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ spec:
5757
port: {{ .Values.controller.service.ports.http }}
5858
protocol: TCP
5959
targetPort: {{ .Values.controller.service.targetPorts.http }}
60-
{{- if and (semverCompare ">=1.20" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
61-
appProtocol: http
60+
{{- if and (semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
61+
appProtocol: {{- if .Values.controller.service.appProtocolInUpperCase }} HTTP {{- else }} http {{ end }}
6262
{{- end }}
6363
{{- if (and $setNodePorts (not (empty .Values.controller.service.nodePorts.http))) }}
6464
nodePort: {{ .Values.controller.service.nodePorts.http }}
@@ -69,8 +69,8 @@ spec:
6969
port: {{ .Values.controller.service.ports.https }}
7070
protocol: TCP
7171
targetPort: {{ .Values.controller.service.targetPorts.https }}
72-
{{- if and (semverCompare ">=1.20" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
73-
appProtocol: https
72+
{{- if and (semverCompare ">=1.20.0-0" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
73+
appProtocol: {{- if .Values.controller.service.appProtocolInUpperCase }} HTTPS {{- else }} https {{ end }}
7474
{{- end }}
7575
{{- if (and $setNodePorts (not (empty .Values.controller.service.nodePorts.https))) }}
7676
nodePort: {{ .Values.controller.service.nodePorts.https }}

charts/ingress-nginx/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,10 @@ controller:
413413
# It allows choosing the protocol for each backend specified in the Kubernetes service.
414414
# See the following GitHub issue for more details about the purpose: https://github.com/kubernetes/kubernetes/issues/40244
415415
# Will be ignored for Kubernetes versions older than 1.20
416+
# For GatewayAPI in GKE uppercase values are expected, otherwise LB healthchecks will be allways http.
416417
##
417418
appProtocol: true
419+
appProtocolInUpperCase: false
418420
annotations: {}
419421
labels: {}
420422
# clusterIP: ""

0 commit comments

Comments
 (0)