Skip to content

Commit

Permalink
Merge pull request #39 from oviceinc/feat/events
Browse files Browse the repository at this point in the history
Add events permission to the controller
  • Loading branch information
h3poteto authored Jul 18, 2024
2 parents 33bfd9a + c23cec3 commit 327588b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ kind: ClusterRole
metadata:
name: manager-role
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- apps
resources:
Expand Down
1 change: 1 addition & 0 deletions internal/controller/argorollout_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type ArgoRolloutReconciler struct {
//+kubebuilder:rbac:groups=rollout.ovice.com,resources=rolloutscaledowns/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=rollout.ovice.com,resources=rolloutscaledowns/finalizers,verbs=update
//+kubebuilder:rbac:groups=apps,resources=replicasets,verbs=get;list;watch;update
//+kubebuilder:rbac:groups="",resources=events,verbs=create;patch

func (r *ArgoRolloutReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
scaleDownList := &optimizerv1alpha1.RolloutScaleDownList{}
Expand Down

0 comments on commit 327588b

Please sign in to comment.