Skip to content

Commit

Permalink
fix yaml bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Peder Amlie committed Apr 19, 2021
1 parent d53fb4b commit 935e42e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/platform-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.0"
description: Platform service chart
name: platform-service
version: 1.0.26
version: 1.0.27
4 changes: 2 additions & 2 deletions charts/platform-service/templates/virtualservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
{{- end}}
{{- end}}
# routes to service
route:
- route:
- destination:
host: {{ include "platform-service.serviceName" . | quote }}
{{- if .Values.defaultRouting.corsPolicy }}
Expand All @@ -88,7 +88,7 @@ spec:
{{- end -}}

{{- if not .Values.defaultRouting.catchAll }}
- match:
match:
{{- range $prefixes }}
{{- if hasPrefix "/" . }}
{{ fail "url prefixes must not include leading slash"}}
Expand Down
15 changes: 12 additions & 3 deletions charts/platform-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ hpa:
minReplicas: 1

defaultRouting:
hosts:
- rapid-models.dnvgl.com
rewriteUrlPrefix:
enabled: false
redirectOnNoTrailingSlash: false
urlExactMatches:
- api
- apidocs

# Generate default virtual services and destination rules
enabled: true

Expand All @@ -79,13 +88,13 @@ defaultRouting:

# options for rewriting the URL to remove the routing prefix before delivering
# the request to the target pod
rewriteUrlPrefix:
#rewriteUrlPrefix:
# replace the routing prefix when enabled (when disabled, the URL is not adjusted)
enabled: true
# enabled: true
# replace the routing prefix with the provided string
# alternate prefixes should begin and end with a "/"
# examples: "/", "/api/"
replaceWith: "/"
# replaceWith: "/"

# route from all hosts (typically only common services)
allHosts: false
Expand Down

0 comments on commit 935e42e

Please sign in to comment.