Skip to content

Commit

Permalink
Merge pull request #143 from ncalibey/nick/api-pathing
Browse files Browse the repository at this point in the history
fix: revert pathing changes to API Ingress
  • Loading branch information
khvn26 authored Jul 24, 2023
2 parents 07a55cd + c65ea77 commit 25cd405
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ venv/
.vscode
charts/*/charts
.direnv
.idea/
2 changes: 1 addition & 1 deletion charts/flagsmith/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: flagsmith
description: Flagsmith
type: application
version: 0.20.0
version: 0.21.0
appVersion: 2.57.0
dependencies:
- name: postgresql
Expand Down
6 changes: 4 additions & 2 deletions charts/flagsmith/templates/ingress-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ spec:
{{- end }}
rules:
{{- range .Values.ingress.api.hosts }}
- host: {{ . | quote }}
- host: {{ .host | quote }}
http:
paths:
- path: /
{{- range .paths }}
- path: {{ . }}
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
pathType: Prefix
backend:
Expand All @@ -52,5 +53,6 @@ spec:
serviceName: {{ $fullName }}-api
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 2 additions & 1 deletion charts/flagsmith/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ ingress:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- chart-example.local
- host: chart-example.local
paths: [ ]
tls: []
# - secretName: chart-example-tls
# hosts:
Expand Down

0 comments on commit 25cd405

Please sign in to comment.