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 cb42ed8
Browse filesBrowse the repository at this point in the historyBrowse files
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>
logger.Info("ClusterRoleBinding conflict or already exists, will reconcile on next cycle", "ClusterRoleBinding", clusterRoleBinding.Name, "error", err)
0 commit comments