Skip to content

Commit 0c93504

Browse files
authored
allow to create/update ReferenceGrants in vcluster namespace (required by istio integration) (#2781)
Signed-off-by: Paweł Bojanowski <pawel.bojanowski@loft.sh>
1 parent 16faebc commit 0c93504

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chart/templates/role.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ rules:
123123
resources: [ "destinationrules", "gateways", "serviceentries", "virtualservices" ]
124124
verbs: [ "create", "delete", "patch", "update", "get", "list", "watch" ]
125125
- apiGroups: [ "gateway.networking.k8s.io" ]
126-
resources: [ "gateways" ]
127-
verbs: [ "create", "delete", "patch", "update", "get", "list", "watch" ]
126+
resources: [ "referencegrants" ]
127+
verbs: [ "create", "delete", "patch", "update", "get" ]
128128
{{- end }}
129129
{{- include "vcluster.customResources.roleExtraRules" . | indent 2 }}
130130
{{- include "vcluster.plugin.roleExtraRules" . | indent 2 }}

chart/tests/role_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,6 @@ tests:
401401
path: rules
402402
content:
403403
apiGroups: ["gateway.networking.k8s.io"]
404-
resources: ["gateways"]
404+
resources: ["referencegrants"]
405405
verbs:
406-
["create", "delete", "patch", "update", "get", "list", "watch"]
406+
["create", "delete", "patch", "update", "get"]

0 commit comments

Comments
 (0)