Skip to content

Commit

Permalink
Update virtual service
Browse files Browse the repository at this point in the history
- Use map for allowOrigins

Signed-off-by: JephWilli <[email protected]>
  • Loading branch information
JephWilli committed Jun 28, 2024
1 parent 3cc05c2 commit b4f53cd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
Binary file added flow-helm-chart-0.1.2.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion flow/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.1
version: 0.1.2

# 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
4 changes: 3 additions & 1 deletion flow/templates/virtual-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ spec:
number: {{ .Values.virtualService.destinationPort }}
corsPolicy:
allowOrigins:
- exact: "*"
{{- range $k, $v := .Values.virtualService.allowOrigins }}
- {{ $k }}: {{ $v | quote }}
{{- end }}
allowHeaders:
{{ range .Values.virtualService.allowHeaders }}
- {{ . | quote }}
Expand Down
4 changes: 3 additions & 1 deletion flow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ virtualService:
destinationPort: 8080
healthCheckPath: /health
allowOrigins:
- exact: "*"
exact: "https://1flow.org"
# prefix: "/v1"
# regex: ""
allowHeaders:
- Content-Type
- Authorization
Expand Down
14 changes: 12 additions & 2 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,22 @@ entries:
flow-helm-chart:
- apiVersion: v2
appVersion: 1.16.0
created: "2024-06-28T14:02:14.627465Z"
created: "2024-06-28T14:26:09.9304Z"
description: A Helm chart for Kubernetes
digest: fea51eefb8b730252916fac6373a35d61d44ba7c9cc8a527ac7b7cd4a6fb7571
name: flow-helm-chart
type: application
urls:
- flow-helm-chart-0.1.2.tgz
version: 0.1.2
- apiVersion: v2
appVersion: 1.16.0
created: "2024-06-28T14:26:09.930109Z"
description: A Helm chart for Kubernetes
digest: 97190966ce1069b0188a7ad825ef070b3274d37d25841e1b9ee12415edf0e268
name: flow-helm-chart
type: application
urls:
- flow-helm-chart-0.1.1.tgz
version: 0.1.1
generated: "2024-06-28T14:02:14.627161Z"
generated: "2024-06-28T14:26:09.928618Z"

0 comments on commit b4f53cd

Please sign in to comment.