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

TestResourceStatusClient.replaceStatus doesn't write status if it doesn't already exist. #433

Open
gavares opened this issue Jan 4, 2023 · 0 comments

Comments

@gavares
Copy link
Contributor

gavares commented Jan 4, 2023

TestResourceStatusClient.replaceStatus does not insert a .status section if one does not already exist because of the call to .mapStatus.

The word "replace" in the name of the function might mean that this behavior is intentional but there doesn't appear to be a createOrUpdateStatus function and replacing the entire CR doesn't seem like the right thing to do when an operator should really only be modifying .status and perhaps .metadata.

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

No branches or pull requests

1 participant