Skip to content

Commit

Permalink
chore(operator): fix rbac
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Schuetz <[email protected]>
  • Loading branch information
Thomas Schuetz committed Oct 4, 2022
1 parent 22de283 commit 19fc449
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
14 changes: 0 additions & 14 deletions operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,7 @@ rules:
- apps
resources:
- deployments
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources:
- replicasets
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- get
Expand Down
4 changes: 1 addition & 3 deletions operator/controllers/keptnworkloadinstance/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ type KeptnWorkloadInstanceReconciler struct {
//+kubebuilder:rbac:groups=lifecycle.keptn.sh,resources=keptntasks/finalizers,verbs=update
//+kubebuilder:rbac:groups=core,resources=events,verbs=create;watch
//+kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch
//+kubebuilder:rbac:groups=apps,resources=replicasets,verbs=get;list;watch
//+kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch
//+kubebuilder:rbac:groups=apps,resources=statefulsets,verbs=get;list;watch
//+kubebuilder:rbac:groups=apps,resources=replicasets;deployments;statefulsets,verbs=get;list;watch

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down

0 comments on commit 19fc449

Please sign in to comment.