Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove list secret rule #1221

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading