Skip to content

Commit

Permalink
FEATURE/MINOR: kubernetes-ingress: Disable QUIC everywhere if .Values…
Browse files Browse the repository at this point in the history
….controller.service.enablePorts.quic is false
  • Loading branch information
dkorunic committed Apr 8, 2024
1 parent 9c6179c commit 8dc2396
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kubernetes-ingress/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Service ports mapped are:
containerPort: {{ $value }}
protocol: TCP
{{- end }}
{{- if semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version }}
{{- if and (semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version) .Values.controller.service.enablePorts.quic }}
- name: quic
containerPort: {{ .Values.controller.containerPort.https }}
protocol: UDP
Expand All @@ -49,7 +49,7 @@ Service ports mapped are:
hostIP: {{ $hostIP }}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version }}
{{- if and (semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version) .Values.controller.service.enablePorts.quic }}
- name: quic
containerPort: {{ .Values.controller.containerPort.https }}
protocol: UDP
Expand Down
4 changes: 2 additions & 2 deletions kubernetes-ingress/templates/controller-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ spec:
- --configmap={{ include "kubernetes-ingress.namespace" . }}/{{ include "kubernetes-ingress.fullname" . }}
- --http-bind-port={{ .Values.controller.containerPort.http }}
- --https-bind-port={{ .Values.controller.containerPort.https }}
{{- if semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version }}
{{- if and (semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version) .Values.controller.service.enablePorts.quic }}
- --quic-bind-port={{ .Values.controller.containerPort.https }}
- --quic-announce-port={{ .Values.controller.service.ports.https }}
{{- end }}
Expand Down Expand Up @@ -151,7 +151,7 @@ spec:
hostIP: {{ $hostIP }}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version }}
{{- if and (semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version) .Values.controller.service.enablePorts.quic }}
- name: quic
containerPort: {{ .Values.controller.containerPort.https }}
protocol: UDP
Expand Down
4 changes: 2 additions & 2 deletions kubernetes-ingress/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ spec:
- --configmap={{ include "kubernetes-ingress.namespace" . }}/{{ include "kubernetes-ingress.fullname" . }}
- --http-bind-port={{ .Values.controller.containerPort.http }}
- --https-bind-port={{ .Values.controller.containerPort.https }}
{{- if semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version }}
{{- if and (semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version) .Values.controller.service.enablePorts.quic }}
- --quic-bind-port={{ .Values.controller.containerPort.https }}
- --quic-announce-port={{ .Values.controller.service.ports.https }}
{{- end }}
Expand Down Expand Up @@ -145,7 +145,7 @@ spec:
containerPort: {{ $value }}
protocol: TCP
{{- end }}
{{- if semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version }}
{{- if and (semverCompare ">=1.24.0-0" .Capabilities.KubeVersion.Version) .Values.controller.service.enablePorts.quic }}
- name: quic
containerPort: {{ .Values.controller.containerPort.https }}
protocol: UDP
Expand Down

0 comments on commit 8dc2396

Please sign in to comment.