Skip to content

Commit 12873a0

Browse files
committed
fix: add patch verbs for events permission
1 parent e759e30 commit 12873a0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

chart/templates/role.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ rules:
5151
verbs: [ "create", "get", "list", "watch" ]
5252
- apiGroups: [ "events.k8s.io" ]
5353
resources: ["events"]
54-
verbs: [ "create", "get", "list", "watch" ]
54+
verbs: [ "create", "get", "list", "watch", "patch" ]
5555
{{- if .Values.sync.toHost.endpoints.enabled }}
5656
- apiGroups: [""]
5757
resources: ["endpoints"]

pkg/syncer/syncer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ func (r *SyncController) Reconcile(ctx context.Context, vReq reconcile.Request)
254254
Host: pObj,
255255
})
256256
if err != nil {
257+
if kerrors.IsConflict(err) {
258+
return ctrl.Result{RequeueAfter: time.Second}, nil
259+
}
257260
return ctrl.Result{}, fmt.Errorf("sync to virtual: %w", err)
258261
}
259262

0 commit comments

Comments
 (0)