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

Handle old pods without network selection elements #44

Merged
merged 2 commits into from
Oct 26, 2022

Conversation

maiqueb
Copy link
Collaborator

@maiqueb maiqueb commented Oct 25, 2022

What this PR does / why we need it:
This PR allows hot-plugging interfaces into a pod without any network-selection-elements.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #43

Special notes for your reviewer (optional):

Copy link
Member

@phoracek phoracek left a comment

Choose a reason for hiding this comment

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

Two tasty nits, the PR looks good. Having the issue as a reference was helpful

pkg/controller/pod.go Show resolved Hide resolved
e2e/client/types.go Outdated Show resolved Hide resolved
This commit fixes the hotplug scenario where the running pod does
**not** feature any attachments other than the default cluster network.

Signed-off-by: Miguel Duarte Barroso <[email protected]>
@maiqueb maiqueb force-pushed the handle-old-pods-without-network-selection-elements branch from f0267bd to 0acf8f5 Compare October 26, 2022 09:30
Copy link
Collaborator Author

@maiqueb maiqueb left a comment

Choose a reason for hiding this comment

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

Thanks for the review @phoracek .

e2e/client/types.go Outdated Show resolved Hide resolved
pkg/controller/pod.go Show resolved Hide resolved
Copy link
Member

@phoracek phoracek left a comment

Choose a reason for hiding this comment

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

/lgtm

@maiqueb maiqueb added this to the MVP milestone Oct 26, 2022
@maiqueb maiqueb merged commit 197e4d6 into main Oct 26, 2022
@maiqueb maiqueb deleted the handle-old-pods-without-network-selection-elements branch October 26, 2022 09:49
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.

[BUG] cannot hotplug when the "old" pod does not have network-selection-elements
2 participants