Skip to content

Commit

Permalink
chore(operator): read-only RBAC for KeptnConfig
Browse files Browse the repository at this point in the history
Signed-off-by: Giovanni Liva <[email protected]>
  • Loading branch information
thisthat committed Mar 23, 2023
1 parent ad408fd commit a4d534f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
11 changes: 0 additions & 11 deletions operator/config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,23 +323,12 @@ rules:
- 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;create
// +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 a4d534f

Please sign in to comment.