-
Notifications
You must be signed in to change notification settings - Fork 48
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
🌱 Rename the pause-reconcile annotation to paused #636
🌱 Rename the pause-reconcile annotation to paused #636
Conversation
40d4a09
to
90d5ddd
Compare
I did realize a concern last night -- will this be confused with a VM being paused as in being in a suspended state? |
I think this should be fine since the suspended state is conveyed through spec and status. It also helps that this is clearly called out in the API docs. |
@bryanv and @akutz , the tricky thing I want to call out is, after this change, I am proactively removing the label that doesn't correspond to the destination schema version. For example, if a v1a3 VM was created with both "pause-reconcile" and "paused" annotations, and this resource is fetched at v1a2, the conversion logic will drop the "paused" annotation from the resource (which the user had explicitly applied). |
I don't think that will be a big deal for this annotation. Note though that we do have the hub version stashed away in the annotation so if we really wanted/needed to we could restore it. |
90d5ddd
to
58b4b72
Compare
This change renames the "pause-reconcile" annotation used to pause the reconciliation of a VM to "paused". This is consistent with other components using "paused" to indicate an entity being paused. Additionally, introduce a helper package that can be used to check if an annotation is present (regardless of the value) in a readable way.
58b4b72
to
c6cfb8d
Compare
Minimum allowed line rate is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
What does this PR do, and why is it needed?
This change renames the "pause-reconcile" annotation used to pause the reconciliation of a VM to "paused". This is consistent with other components using "paused" to indicate an entity being paused.
Additionally, introduce a helper package that can be used to check if an annotation is present (regardless of the value) in a readable way.
Testing Done:
paused
annotation set.pause-reconcile
annotation setpause-reconcile
annotation is set.Please add a release note if necessary: