Skip to content

Commit

Permalink
Merge pull request #1336 from tu1h/fix_role_privilege
Browse files Browse the repository at this point in the history
Fix role privilege
  • Loading branch information
0ekk authored Aug 8, 2024
2 parents 5c67b3a + a7a46f3 commit de6f8a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/kubean/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: {{ $name }}
rules:
- apiGroups: [ 'kubean.io' ]
resources: [ 'clusteroperations','clusteroperations/status','clusters','clusters/status','localartifactsets','localartifactsets/status','manifests','manifest/status' ]
resources: [ 'clusteroperations','clusteroperations/status','clusters','clusters/status','localartifactsets','localartifactsets/status','manifests','manifests/status' ]
verbs: [ '*' ]
- apiGroups: [ 'admissionregistration.k8s.io' ]
resources: [ 'validatingwebhookconfigurations' ]
Expand Down
7 changes: 5 additions & 2 deletions charts/kubean/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rules:
verbs: [ 'list' ]
- apiGroups: [ '' ]
resources: [ 'configmaps','secrets' ]
verbs: [ "get", "create", "update" ]
verbs: [ "get", "create", "update", "delete" ]
- apiGroups: [ '' ]
resources: [ 'events' ]
verbs: [ "create" ]
Expand All @@ -20,4 +20,7 @@ rules:
- apiGroups: [ 'coordination.k8s.io' ]
resources: [ 'leases' ]
resourceNames: [ 'kubean-controller', 'lease-for-kubean-webhook-ca-create' ]
verbs: [ "get", "create", "update", "delete" ]
verbs: [ "get", "update" ]
- apiGroups: [ 'coordination.k8s.io' ]
resources: [ 'leases' ]
verbs: [ "create", "delete" ]

0 comments on commit de6f8a8

Please sign in to comment.