diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 2feccfd..fb9944a 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -5,6 +5,13 @@ metadata: creationTimestamp: null name: replication-manager-role rules: +- apiGroups: + - "" + resources: + - events + verbs: + - create + - patch - apiGroups: - "" resources: diff --git a/controllers/componentsubscription_controller.go b/controllers/componentsubscription_controller.go index 667d4ae..cc28309 100644 --- a/controllers/componentsubscription_controller.go +++ b/controllers/componentsubscription_controller.go @@ -141,6 +141,7 @@ func (r *ComponentSubscriptionReconciler) findObjects(sourceKey string, destinat //+kubebuilder:rbac:groups=delivery.ocm.software,resources=componentsubscriptions/finalizers,verbs=update //+kubebuilder:rbac:groups="",resources=secrets,verbs=get;list;watch;create;update;patch;delete //+kubebuilder:rbac:groups="",resources=serviceaccounts,verbs=get;list;watch;create;update;patch;delete +//+kubebuilder:rbac:groups="",resources=events,verbs=create;patch // Reconcile is part of the main kubernetes reconciliation loop which aims to // move the current state of the cluster closer to the desired state.