Skip to content

Commit

Permalink
Update ingress.yaml to dynamically set service port based on httpsPor…
Browse files Browse the repository at this point in the history
…t availability.

- Dynamically set service port based on httpsPort availability in ingress.yaml.

update version
  • Loading branch information
Joseph committed Dec 17, 2024
1 parent 0072334 commit 617b888
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/flipt/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: flipt
home: https://flipt.io
description: Flipt is an open-source, self-hosted feature flag solution.
type: application
version: 0.77.1
version: 0.77.2
appVersion: v1.53.2
maintainers:
- name: Flipt
Expand Down
6 changes: 5 additions & 1 deletion charts/flipt/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "flipt.fullname" . -}}
{{- $svcPort := .Values.service.httpPort -}}
{{- if .Values.service.httpsPort }}
{{- $svcPort := .Values.service.httpsPort -}}
{{- else }}
{{- $svcPort := .Values.service.httpPort -}}
{{- end }}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
Expand Down

0 comments on commit 617b888

Please sign in to comment.