Skip to content

Commit

Permalink
Fix generated config
Browse files Browse the repository at this point in the history
  • Loading branch information
marcobebway committed Apr 17, 2024
1 parent 835bad3 commit 394fb60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ rules:
- apiGroups:
- batch
resourceNames:
- '["eventing-manager-cert-handler"]'
- eventing-manager-cert-handler
resources:
- cronjobs
verbs:
- delete
- apiGroups:
- batch
resourceNames:
- '["eventing-manager-cert-handler"]'
- eventing-manager-cert-handler
resources:
- jobs
verbs:
Expand Down
4 changes: 2 additions & 2 deletions internal/controller/operator/eventing/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ func NewReconciler(
// +kubebuilder:rbac:groups="eventing.kyma-project.io",resources=subscriptions,verbs=get;list;watch;update;patch;create;delete
// +kubebuilder:rbac:groups=eventing.kyma-project.io,resources=subscriptions/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=security.istio.io,resources=peerauthentications,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups="batch",resources=jobs,verbs=delete,resourceNames=["eventing-manager-cert-handler"]
// +kubebuilder:rbac:groups="batch",resources=cronjobs,verbs=delete,resourceNames=["eventing-manager-cert-handler"]
// +kubebuilder:rbac:groups="batch",resources=jobs,verbs=delete,resourceNames=eventing-manager-cert-handler
// +kubebuilder:rbac:groups="batch",resources=cronjobs,verbs=delete,resourceNames=eventing-manager-cert-handler
// Generate required RBAC to emit kubernetes events in the controller.
// +kubebuilder:rbac:groups="",resources=events,verbs=create;patch

Expand Down

0 comments on commit 394fb60

Please sign in to comment.