-
Notifications
You must be signed in to change notification settings - Fork 545
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
InstallPlan cannot resolve a change to immutable field in operator Deployment spec #1608
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
bump |
@exdx If no one is working on this, I can pick it up.. |
@aharbis There was a workaround documented here: Basically, if you are adding a label or otherwise immutable change, you can just rename the deployment, which will cause a new one to be created instead of the existing updated. Is this an acceptable workaround? |
@cdjohnson Yes, that's the workaround that we documented in our upgrade docs. I still believe this is something that should be handled by OLM gracefully. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contribution. |
This issue has been automatically closed because it has not had any recent activity. Thank you for your contribution. |
Bug Report
What did you do?
Between two releases of our operator, we modified the
labels
on our operator's Deployment resource.What did you expect to see?
OLM successfully resolve the new InstallPlan and Deployment spec, and perform the update.
What did you see instead? Under which circumstances?
OLM failed to perform the update, and the InstallPlan failed with an error such as:
Environment
OCP 4.4.3, not sure on specific OLM version.
Possible Solution
If some change is found during the InstallPlan such as this, which causes a diff on an immutable field, the Deployment could be deleted by OLM and recreated to resolve the issue (this is what we had to do manually as a workaround).
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: