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

add support for cni STATUS verb #196

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

squeed
Copy link
Collaborator

@squeed squeed commented Apr 16, 2024

The new CNI v1.1 STATUS verb allows for plugins to report that they are not ready to handle ADDs. It is a cleaner API than the awkward "remove-config-file" dance currently in use.

The libcni code gracefully handles older versions, so this is backwards compatible.

/kind feature

For plugins that support CNI v1.1, ocicni now uses the STATUS verb to determine if the network is ready for ADD requests.

@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Apr 16, 2024
@openshift-ci openshift-ci bot requested review from dcbw and saschagrunert April 16, 2024 08:48
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

Code LGTM but let's address the reported lints.

The new CNI v1.1 STATUS verb allows for plugins to report that they are not ready
to handle ADDs. It is a cleaner API than the awkward
"remove-config-file" dance currently in use.

The libcni code gracefully handles older versions, so this is backwards
compatible.

Signed-off-by: Casey Callendrello <[email protected]>
@squeed
Copy link
Collaborator Author

squeed commented Apr 16, 2024

Code LGTM but let's address the reported lints.

@saschagrunert whoops, sorry about that. Fixed. Needed to add a //nolint:interfacebloat, FYI.

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

Thanks!

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 16, 2024
Copy link
Contributor

openshift-ci bot commented Apr 16, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert, squeed

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 16, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 2f5515b into cri-o:master Apr 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants