Skip to content

Commit

Permalink
Missing watch permission in rbac for agones-sdk
Browse files Browse the repository at this point in the history
Getting the following error in the logs.
`{"level":"error","msg":"agones.dev/agones/pkg/client/informers/externalversions/factory.go:74: Failed to watch *v1alpha1.GameServer: unknown (get gameservers.stable.agones.dev)","time":"2018-07-19T21:52:23Z"}`

Needed the `watch` permission to make it go away.

We aren't watching for events right now, so it's just noise,
but it's better with it gone.
  • Loading branch information
markmandel committed Jul 20, 2018
1 parent 9854e73 commit 9dc9109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install/helm/agones/templates/serviceaccounts/sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ metadata:
rules:
- apiGroups: ["stable.agones.dev"]
resources: ["gameservers"]
verbs: ["list", "update"]
verbs: ["list", "update", "watch"]
---
{{- range .Values.gameservers.namespaces }}
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
2 changes: 1 addition & 1 deletion install/yaml/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ metadata:
rules:
- apiGroups: ["stable.agones.dev"]
resources: ["gameservers"]
verbs: ["list", "update"]
verbs: ["list", "update", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand Down

0 comments on commit 9dc9109

Please sign in to comment.