Skip to content

Commit 5bcf709

Browse files
authored
Merge pull request #128 from GDATASoftwareAG/gateway-api-support
Change names of GatewayAPI resources and fix header for websocket match
2 parents 0d062ca + 8482ce9 commit 5bcf709

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

charts/vaas/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: vaas
3-
version: 3.3.0-alpha.2
3+
version: 3.3.0-beta.1
44
description: Deployment of a Verdict-as-a-Service on-premise instance
55
maintainers:
66
- name: G DATA CyberDefense AG

charts/vaas/templates/gateway-api/gateway.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
apiVersion: gateway.networking.k8s.io/v1
44
kind: Gateway
55
metadata:
6-
name: {{ default (include "gateway-api.fullname" .) .Values.gatewayApi.nameOverride }}
6+
name: {{ include "gateway-api.fullname" . }}
77
namespace: {{ .Release.Namespace }}
88
labels:
99
{{ include "gateway-api.labels" . | nindent 4 }}

charts/vaas/templates/gateway-api/http-redirect-route.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
apiVersion: gateway.networking.k8s.io/v1beta1
44
kind: HTTPRoute
55
metadata:
6-
name: {{ default (include "gateway-api.fullname" .) .Values.gatewayApi.nameOverride }}
6+
name: {{ include "gateway-api.fullname" . }}-redirect-route
77
namespace: {{ .Release.Namespace }}
88
spec:
99
parentRefs:

charts/vaas/templates/gateway/http-route.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
apiVersion: gateway.networking.k8s.io/v1beta1
44
kind: HTTPRoute
55
metadata:
6-
name: {{ include "gateway.fullname" . }}
6+
name: {{ include "gateway-api.fullname" . }}-gateway-route
77
namespace: {{ .Release.Namespace }}
88
spec:
99
parentRefs:
@@ -19,11 +19,12 @@ spec:
1919
- name: {{ include "gateway.fullname" . }}
2020
port: {{ .Values.gateway.service.ws.port }}
2121
weight: 1
22-
header:
23-
- name: Upgrade
24-
value: websocket
2522
matches:
26-
- path:
23+
- headers:
24+
- name: Upgrade
25+
value:
26+
websocket
27+
path:
2728
type: PathPrefix
2829
value: /
2930
- backendRefs:

0 commit comments

Comments
 (0)