Skip to content

Commit

Permalink
chore(operator): read-only RBAC for KeptnConfig controller (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisthat committed Mar 24, 2023
1 parent e49b5a3 commit ea91ff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
12 changes: 0 additions & 12 deletions operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,24 +322,12 @@ rules:
resources:
- keptnconfigs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- options.keptn.sh
resources:
- keptnconfigs/finalizers
verbs:
- update
- apiGroups:
- options.keptn.sh
resources:
- keptnconfigs/status
verbs:
- get
- patch
- update
5 changes: 2 additions & 3 deletions operator/controllers/options/keptnconfig_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ type KeptnConfigReconciler struct {
LastAppliedSpec *optionsv1alpha1.KeptnConfigSpec
}

// +kubebuilder:rbac:groups=options.keptn.sh,resources=keptnconfigs,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=options.keptn.sh,resources=keptnconfigs/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=options.keptn.sh,resources=keptnconfigs/finalizers,verbs=update
// +kubebuilder:rbac:groups=options.keptn.sh,resources=keptnconfigs,verbs=get;list;watch
// +kubebuilder:rbac:groups=options.keptn.sh,resources=keptnconfigs/status,verbs=get

// 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 ea91ff3

Please sign in to comment.