Skip to content

Commit

Permalink
changed secret cluster role to namespaced role
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMHD committed Aug 22, 2023
1 parent 40ac4ba commit 10dab41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ rules:
- get
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: null
name: manager-role
namespace: cerberus-operator-system
rules:
- apiGroups:
- v1
resources:
Expand Down
2 changes: 1 addition & 1 deletion pkg/auth/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const (
//+kubebuilder:rbac:groups=cerberus.snappcloud.io,resources=webservices/status,verbs=get;
//+kubebuilder:rbac:groups=cerberus.snappcloud.io,resources=webserviceaccountbindings,verbs=get;list;watch;
//+kubebuilder:rbac:groups=cerberus.snappcloud.io,resources=webserviceaccountbindings/status,verbs=get;
//+kubebuilder:rbac:groups=v1,resources=secrets,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=v1,namespace=cerberus-operator-system,resources=secrets,verbs=get;list;watch;create;update;patch;delete

func (a *Authenticator) UpdateCache(ctx context.Context) error {
a.updateLock.Lock()
Expand Down

0 comments on commit 10dab41

Please sign in to comment.