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

Write to IPAM checkpoint file immediately after reading from CRI #1140

Merged
merged 1 commit into from
Aug 14, 2020

Conversation

anguslees
Copy link
Contributor

The current migration logic has a corner case: if we upgrade
1.6->1.7->1.8 and never see a pod create/delete during the 1.7
phase, then we never write the IPAM checkpoint file.

This change just writes the file immediately after reading state from
CRI, if in migration phase1.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The current migration logic has a corner case: if we upgrade
1.6->1.7->1.8 and _never_ see a pod create/delete during the 1.7
phase, then we never write the IPAM checkpoint file.

This change just writes the file immediately after reading state from
CRI, if in migration phase1.
@anguslees anguslees added this to the v1.7.0 milestone Aug 14, 2020
@anguslees anguslees requested a review from mogren August 14, 2020 09:34
Copy link
Contributor

@jayanthvn jayanthvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you :)

@jayanthvn jayanthvn merged commit e150b8e into aws:master Aug 14, 2020
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