Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controllers: objects need to be cloned before update #6006

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

nicks
Copy link
Member

@nicks nicks commented Jan 6, 2023

controller-runtime Get() sets the pointer to an object in the cache.

Status().Update(obj) modifies the object :\

this was leading to really weird race conditions
that were nagging at me.

Signed-off-by: Nick Santos [email protected]

controller-runtime Get() sets the pointer to an object
in the cache.

Status().Update(obj) modifies the object :\

this was leading to really weird race conditions
that were nagging at me.

Signed-off-by: Nick Santos <[email protected]>
@nicks nicks requested review from nicksieger and milas January 6, 2023 01:31
@nicks nicks merged commit bfe8403 into tilt-dev:master Jan 6, 2023
@nicks nicks deleted the nicks/push branch January 6, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants