Skip to content

Commit 3f8db3f

Browse files
markmandeldzlier-gcp
authored andcommitted
RBAC: controller doesn't need fleet create
The controller only needs "get", "list", "update", "watch" for fleets.
1 parent fc674d8 commit 3f8db3f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

install/helm/agones/templates/serviceaccounts/controller.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ rules:
4747
resources: ["customresourcedefinitions"]
4848
verbs: ["get"]
4949
- apiGroups: ["stable.agones.dev"]
50-
resources: ["gameservers", "gameserversets", "fleets"]
50+
resources: ["gameservers", "gameserversets"]
5151
verbs: ["create", "delete", "get", "list", "update", "watch"]
5252
- apiGroups: ["stable.agones.dev"]
53-
resources: ["fleetallocations"]
53+
resources: ["fleets", "fleetallocations"]
5454
verbs: ["get", "list", "update", "watch"]
5555
---
5656
apiVersion: rbac.authorization.k8s.io/v1

install/yaml/install.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ rules:
7474
resources: ["customresourcedefinitions"]
7575
verbs: ["get"]
7676
- apiGroups: ["stable.agones.dev"]
77-
resources: ["gameservers", "gameserversets", "fleets"]
77+
resources: ["gameservers", "gameserversets"]
7878
verbs: ["create", "delete", "get", "list", "update", "watch"]
7979
- apiGroups: ["stable.agones.dev"]
80-
resources: ["fleetallocations"]
80+
resources: ["fleets", "fleetallocations"]
8181
verbs: ["get", "list", "update", "watch"]
8282
---
8383
apiVersion: rbac.authorization.k8s.io/v1

0 commit comments

Comments
 (0)