Skip to content

Commit

Permalink
Merge pull request #210 from erwan-b/main
Browse files Browse the repository at this point in the history
feat: Being able to edit ingress `servicePort` in `values.yaml`
  • Loading branch information
GeorgeMac authored Feb 12, 2025
2 parents 4728712 + b70d871 commit c21443c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 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.80.0
version: 0.80.1
appVersion: v1.55.0
maintainers:
- name: Flipt
Expand Down
9 changes: 4 additions & 5 deletions charts/flipt/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "flipt.fullname" . -}}
{{- $svcPort := default .Values.service.httpPort .Values.service.httpsPort -}}
{{- 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 Expand Up @@ -50,12 +49,12 @@ spec:
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
name: {{ default $fullName .backend.serviceName }}
port:
number: {{ $svcPort }}
name: {{ .backend.servicePort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
serviceName: {{ default $fullName .backend.serviceName }}
servicePort: {{ .backend.servicePort }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
3 changes: 3 additions & 0 deletions charts/flipt/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ ingress:
paths:
- path: /
pathType: ImplementationSpecific
backend:
servicePort: http
serviceName: ""
tls: []
# - secretName: chart-example-tls
# hosts:
Expand Down

0 comments on commit c21443c

Please sign in to comment.