Skip to content

Commit 48531f9

Browse files
vgwizardxJoseph
andauthored
Update ingress.yaml to dynamically set service port based on httpsPort availability. (#197)
- Dynamically set service port based on httpsPort availability in ingress.yaml. Co-authored-by: Joseph <[email protected]>
1 parent 0072334 commit 48531f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

charts/flipt/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: flipt
33
home: https://flipt.io
44
description: Flipt is an open-source, self-hosted feature flag solution.
55
type: application
6-
version: 0.77.1
6+
version: 0.77.2
77
appVersion: v1.53.2
88
maintainers:
99
- name: Flipt

charts/flipt/templates/ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{- if .Values.ingress.enabled -}}
22
{{- $fullName := include "flipt.fullname" . -}}
3-
{{- $svcPort := .Values.service.httpPort -}}
3+
{{- $svcPort := default .Values.service.httpPort .Values.service.httpsPort -}}
44
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
55
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
66
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}

0 commit comments

Comments
 (0)