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

neonvm-controller: Fix overwriting runner version #753

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

sharnoff
Copy link
Member

@sharnoff sharnoff commented Jan 22, 2024

Noticed while working on #738. In short, because the runner API version was part of labelsForVirtualMachine, any update to the runner version would be updated for all VM pods, not just new one.

This is (probably) not an issue in prod right now, but could be an issue for future changes. Right now, #738 would trigger this bug, but remain unaffected (it doesn't have version-dependent logic currently).

This PR fixes the behavior by adding the runner API version as an explicit argument to labelsForVirtualMachine and ignoring the label in updatePodMetadataIfNecessary.


Notes for review: Planning to merge 48h after 1 approval, or 24h after 2 approvals. Want to give people a chance to take a look, but overall change is not too complex.

Noticed while working on #738. In short, because the runner API version
was part of labelsForVirtualMachine, any update to the runner version
would be updated for *all* VM pods, not just new one.

This is (probably) not an issue in prod right now, but could be an issue
for future changes. Right now, #738 would trigger this bug, but remain
unaffected (it doesn't have version-dependent logic *currently*).

This PR fixes the behavior by adding the runner API version as an
explicit argument to labelsForVirtualMachine and ignoring the label in
updatePodMetadataIfNecessary.
@sharnoff sharnoff merged commit 170e529 into main Jan 25, 2024
9 checks passed
@sharnoff sharnoff deleted the sharnoff/neonvm-fix-runner-version-labeling branch January 25, 2024 22:10
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.

3 participants