Skip to content

Commit

Permalink
remove list secret rule
Browse files Browse the repository at this point in the history
Signed-off-by: michael12312 <jun.wang@fmr.com>
  • Loading branch information
michael12312 committed Aug 12, 2024
1 parent db26d24 commit 4787e09
Showing 1 changed file with 149 additions and 2 deletions.
151 changes: 149 additions & 2 deletions charts/k8sgpt/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,156 @@ metadata:
{{- include "k8sgpt.labels" . | nindent 4 }}
rules:
- apiGroups:
- '*'
- ""
resources:
- '*'
- nodes
- nodes/status
- namespaces
- namespaces/status
- pods
- pods/status
- pods/log
- replicationcontrollers/scale
- replicationcontrollers/status
- services
- services/proxy
- services/status
- configmaps
- endpoints
- persistentvolumes
- persistentvolumes/status
- persistentvolumeclaims
- persistentvolumeclaims/status
- events
- componentstatuses
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- apiGroups:
- apps
resources:
- replicasets
- replicasets/scale
- replicasets/status
- deployments
- deployments/scale
- deployments/status
- daemonsets
- daemonsets/status
- statefulsets
- statefulsets/scale
- statefulsets/status
verbs:
- get
- list
- watch
- apiGroups:
- batch
resources:
- jobs
- jobs/status
- cronjobs
- cronjobs/status
verbs:
- get
- list
- watch
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- get
- list
- watch
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
- horizontalpodautoscalers/status
verbs:
- get
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
- ingresses
- ingresses/status
- ingressclasses
- networkpolicies
verbs:
- get
- list
- watch
- apiGroups:
- policy
resources:
- poddisruptionbudgets
- poddisruptionbudgets/status
verbs:
- get
- list
- watch
- apiGroups:
- events.k8s.io
resources:
- events
verbs:
- get
- list
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- get
- list
- watch
- apiGroups:
- gateway.networking.k8s.io
resources:
- gateways
- gateways/status
- gatewayclasses
- gatewayclasses/status
- httproutes
- httproutes/status
- grpcroutes
- grpcroutes/status
verbs:
- get
- list
- watch
- apiGroups:
- keda.sh
resources:
- scaledjobs
- scaledjobs/status
- scaledobjects
- scaledobjects/status
- clustertriggerauthentications
- triggerauthentications
verbs:
- get
- list
- watch
- apiGroups:
- aquasecurity.github.io
resources:
- vulnerabilityreports
- clustervulnerabilityreports
- configauditreports
- clusterconfigauditreports
verbs:
- get
- list
Expand Down

0 comments on commit 4787e09

Please sign in to comment.