Skip to content

Commit

Permalink
Remove unnecessary RBAC
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Beck <simon.beck@vshn.ch>
  • Loading branch information
Kidswiss committed May 15, 2024
1 parent d21f019 commit c8e9202
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 28 deletions.
3 changes: 1 addition & 2 deletions api/v1/podconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
)

// +kubebuilder:rbac:groups=k8up.io,resources=podconfigs,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=k8up.io,resources=podconfigs/status;snapshots/finalizers,verbs=get;update;patch
// +kubebuilder:rbac:groups=k8up.io,resources=podconfigs,verbs=get;list;watch

// PodConfigSpec contains the podTemplate definition.
type PodConfigSpec struct {
Expand Down
13 changes: 0 additions & 13 deletions charts/k8up/templates/operator-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,22 +167,9 @@ rules:
resources:
- podconfigs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- k8up.io
resources:
- podconfigs/status
- snapshots/finalizers
verbs:
- get
- patch
- update
- apiGroups:
- k8up.io
resources:
Expand Down
13 changes: 0 additions & 13 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,9 @@ rules:
resources:
- podconfigs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- k8up.io
resources:
- podconfigs/status
- snapshots/finalizers
verbs:
- get
- patch
- update
- apiGroups:
- k8up.io
resources:
Expand Down

0 comments on commit c8e9202

Please sign in to comment.