mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-20 21:44:42 +00:00
⚡ Give the permission of listing or watching the persistentvolumeclaims
to the ClusterRole
This commit is contained in:
parent
c342885cae
commit
df7d1ac10c
@ -19,6 +19,7 @@ rules:
|
|||||||
- pods
|
- pods
|
||||||
- services
|
- services
|
||||||
- endpoints
|
- endpoints
|
||||||
|
- persistentvolumeclaims
|
||||||
verbs:
|
verbs:
|
||||||
- list
|
- list
|
||||||
- get
|
- get
|
||||||
|
@ -575,9 +575,22 @@ func (provider *Provider) BuildClusterRole() *rbac.ClusterRole {
|
|||||||
},
|
},
|
||||||
Rules: []rbac.PolicyRule{
|
Rules: []rbac.PolicyRule{
|
||||||
{
|
{
|
||||||
APIGroups: []string{"", "extensions", "apps"},
|
APIGroups: []string{
|
||||||
Resources: []string{"pods", "services", "endpoints"},
|
"",
|
||||||
Verbs: []string{"list", "get", "watch"},
|
"extensions",
|
||||||
|
"apps",
|
||||||
|
},
|
||||||
|
Resources: []string{
|
||||||
|
"pods",
|
||||||
|
"services",
|
||||||
|
"endpoints",
|
||||||
|
"persistentvolumeclaims",
|
||||||
|
},
|
||||||
|
Verbs: []string{
|
||||||
|
"list",
|
||||||
|
"get",
|
||||||
|
"watch",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ rules:
|
|||||||
- pods
|
- pods
|
||||||
- services
|
- services
|
||||||
- endpoints
|
- endpoints
|
||||||
|
- persistentvolumeclaims
|
||||||
verbs:
|
verbs:
|
||||||
- list
|
- list
|
||||||
- get
|
- get
|
||||||
|
Loading…
Reference in New Issue
Block a user