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

CNI 1.1.0 support #1273

Merged
merged 3 commits into from
Jan 16, 2025
Merged

CNI 1.1.0 support #1273

merged 3 commits into from
Jan 16, 2025

Conversation

s1061123
Copy link
Member

@s1061123 s1061123 commented May 2, 2024

This PR support CNI SPEC 1.1.0, with new CNI commands, GC and STATUS.

@coveralls
Copy link

coveralls commented May 2, 2024

Coverage Status

coverage: 55.888% (-0.5%) from 56.343%
when pulling 7eb9673 on s1061123:cni110
into fba1fea on k8snetworkplumbingwg:master.

@s1061123 s1061123 changed the title CNI 1.1.0 support [WIP]CNI 1.1.0 support May 20, 2024
@s1061123
Copy link
Member Author

Need to discuss: May need to disable GC for now because it may happens unexpected resource removal by GC (if same CNI plugin is used for both, cluster network and net-attach-def, it mihgt be happen)

@s1061123 s1061123 mentioned this pull request May 24, 2024
@s1061123 s1061123 changed the title [WIP]CNI 1.1.0 support CNI 1.1.0 support May 24, 2024
@s1061123
Copy link
Member Author

Need to discuss: May need to disable GC for now because it may happens unexpected resource removal by GC (if same CNI plugin is used for both, cluster network and net-attach-def, it mihgt be happen)

Changed.

pkg/multus/multus.go Dismissed Show dismissed Hide dismissed
pkg/multus/multus.go Dismissed Show dismissed Hide dismissed
@maiqueb
Copy link
Collaborator

maiqueb commented May 30, 2024

/cc

Copy link

github-actions bot commented Sep 5, 2024

This pull request is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Copy link

This pull request is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

This change supports up to date CNI 1.1 command, GC and STATUS for
cluster network.
This code changes CNI's GC command argument. Previously it just
passes from parent CNI runtime, however, it may causes unexpected
resource deletion if one CNI plugin is used in both cluster
network and net-attach-def. This change generates valid attachments
from multus CNI cache and passed to delegate CNI plugin.
Copy link
Member

@dougbtv dougbtv left a comment

Choose a reason for hiding this comment

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

Some notes from our call:

  • GC and STATUS
    • Hard to invoke STATUS in a multus context, e.g. no status for macvlan as a delegated plugin, for example.
    • Maybe only for cluster networks
    • GC more complicated
      • Only stores cluster network object.
    • GC and STATUS are just delegated.

So, this delegation is what Multus is designed to do, I think this is the right place to start.

@dougbtv dougbtv merged commit 4a0b507 into k8snetworkplumbingwg:master Jan 16, 2025
24 checks passed
@s1061123 s1061123 deleted the cni110 branch January 16, 2025 14:40
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.

4 participants