You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e79bd33
Browse filesBrowse the repository at this point in the historyBrowse files
ci: Add bundle-sync verification to operator PR workflow (#6751)
* ci: Add bundle-sync verification to operator PR workflow
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
* fix: Regenerate operator bundle to sync RBAC permissions
Run `make bundle` to pick up refined clusterrole/clusterrolebinding
RBAC rules and drop stale subjectaccessreviews permission.
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
* fix: Retry on AlreadyExists for cluster-scoped RBAC resources
retry.RetryOnConflict only handles Conflict (resource version mismatch).
When concurrent reconcile loops both GET a NotFound resource and race
to Create it, the loser gets AlreadyExists which was not retried.
Switch to retry.OnError with a predicate covering both IsConflict and
IsAlreadyExists so the retry re-GETs the now-existing resource and
proceeds with an update.
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix: Regenerate operator bundle to sync RBAC and CRD changes
Run make bundle to pick up the clusterrole get/list RBAC verbs and
updated CRD field descriptions.
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix: Handle AlreadyExists and Conflict as non-errors for cluster RBAC
The controller-runtime cached client can return stale NotFound for
cluster-scoped resources when the informer cache has not yet synced.
This causes CreateOrUpdate to attempt a Create that fails with
AlreadyExists. Retrying does not help because the cache remains
stale during the short retry window.
Treat AlreadyExists and Conflict as non-errors since the resource
exists in the desired state. The next reconcile cycle will update
its contents once the cache has synced. This follows the standard
Kubernetes operator eventual-consistency pattern.
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
logger.Info("ClusterRoleBinding conflict or already exists, will reconcile on next cycle", "ClusterRoleBinding", clusterRoleBinding.Name, "error", err)
0 commit comments