Skip to content

Commit

Permalink
chore(odiglet): remove unused rbac permission in replicasets
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir committed Jan 10, 2025
1 parent fe87147 commit c731387
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion cli/cmd/resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ In this doc, we'll keep track of the permissions requested across different reso
| Odiglet | "" | nodes | get, list, watch | Needed for virtual device registration. |
| Odiglet | apps | deployments, daemonsets, statefulsets | get, list, watch | Needed for language detection (temporary until new detection logic is ready). |
| Odiglet | apps | deployments/status, daemonsets/status, statefulsets/status | get | Needed for language detection (temporary until new detection logic is ready). |
| Odiglet | apps | replicasets | get | Needed for language detection (temporary until new detection logic is ready). | |
| Odiglet | odigos.io | instrumentationinstances | create, get, list, patch, update, watch, delete | Manages instrumentation instances for process state storage. |
| Odiglet | odigos.io | instrumentationinstances/status | get, patch, update | Updates status of instrumentation instances. |
| Odiglet | odigos.io | instrumentationconfigs | get, list, watch, patch, update | Manages instrumentation configurations (future update for runtime details storage). |
Expand Down
6 changes: 0 additions & 6 deletions cli/cmd/resources/odiglet.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ func NewOdigletClusterRole(psp bool) *rbacv1.ClusterRole {
Resources: []string{"deployments/status", "daemonsets/status", "statefulsets/status"},
Verbs: []string{"get"},
},
{ // Needed for language detection
// TODO: remove this once Tamir/PR is read for new language detection
APIGroups: []string{"apps"},
Resources: []string{"replicasets"},
Verbs: []string{"get"},
},
{ // Needed for virtual device registration
APIGroups: []string{""},
Resources: []string{"nodes"},
Expand Down
6 changes: 0 additions & 6 deletions helm/odigos/templates/odiglet/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ rules:
- statefulsets/status
verbs:
- get
- apiGroups:
- apps
resources:
- replicasets
verbs:
- get
- apiGroups:
- ''
resources:
Expand Down

0 comments on commit c731387

Please sign in to comment.