Skip to content

Commit

Permalink
Internal Service: Implement controller.service.appProtocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko committed Mar 7, 2023
1 parent e3b4026 commit e2f4364
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s
- Service: Implement node ports for `tcp` and `udp`.
- Internal Service: Implement `controller.service.internal.loadBalancerIP`.
- Internal Service: Implement `controller.service.enableHttp` & `controller.service.enableHttps`.
- Internal Service: Implement `controller.service.appProtocol`.

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ spec:
port: {{ .Values.controller.service.ports.http }}
protocol: TCP
targetPort: {{ .Values.controller.service.targetPorts.http }}
{{- if and (semverCompare ">=1.20" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
appProtocol: http
{{- end }}
{{- if (and $setNodePorts (not (empty .Values.controller.service.internal.nodePorts.http))) }}
nodePort: {{ .Values.controller.service.internal.nodePorts.http }}
{{- end }}
Expand All @@ -60,6 +63,9 @@ spec:
port: {{ .Values.controller.service.ports.https }}
protocol: TCP
targetPort: {{ .Values.controller.service.targetPorts.https }}
{{- if and (semverCompare ">=1.20" .Capabilities.KubeVersion.Version) (.Values.controller.service.appProtocol) }}
appProtocol: https
{{- end }}
{{- if (and $setNodePorts (not (empty .Values.controller.service.internal.nodePorts.https))) }}
nodePort: {{ .Values.controller.service.internal.nodePorts.https }}
{{- end }}
Expand Down

0 comments on commit e2f4364

Please sign in to comment.