Skip to content

Commit

Permalink
Update ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
sneumann committed May 28, 2022
1 parent fe3c2e6 commit 950ff23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/formaTAPIRest/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.3
version: 0.1.4

# 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
10 changes: 10 additions & 0 deletions charts/formaTAPIRest/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,19 @@ spec:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/formaTAPIRest/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ ingress:
- host: formatapirest.local
paths:
- path: /formaTAPIRest
pathType: ImplementationSpecific
backend:
serviceName: formatapirest
servicePort: 8080
Expand Down

0 comments on commit 950ff23

Please sign in to comment.