Skip to content

Commit

Permalink
HTTP route fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JessieAMorris committed Dec 6, 2024
1 parent 7107414 commit 019d706
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/philter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.2
version: 0.1.3

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
19 changes: 10 additions & 9 deletions charts/philter/templates/http-route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@ spec:
{{- end }}
rules:
{{- range .Values.httpRoute.paths }}
- matches:
- path:
type: {{ .type | default "PathPrefix" }}
value: {{ trimSuffix "/" .path }}/api
backendRefs:
- backendRefs:
- name: {{ include "philter.apiFullname" $ }}
port: {{ .port | default $.Values.api.service.port }}
- path:
matches:
- path:
type: {{ .type | default "PathPrefix" }}
value: {{ trimSuffix "/" .path }}/ui
backendRefs:
- name: {{ include "philter.fullname" $ }}
value: {{ trimSuffix "/" .path }}/api
- backendRefs:
- name: {{ include "philter.uiFullname" $ }}
port: {{ .port | default $.Values.ui.service.port }}
matches:
- path:
type: {{ .type | default "PathPrefix" }}
value: {{ trimSuffix "/" .path }}/ui
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/philter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ httpRoute:
enabled: false
annotations: {}
hostnames: []
parentRefs: []
paths:
- path: /

Expand Down Expand Up @@ -140,6 +141,8 @@ ui:
# runAsNonRoot: true
# runAsUser: 1000

env: []

service:
type: ClusterIP
port: 8080
Expand Down

0 comments on commit 019d706

Please sign in to comment.