passes K8S_POD_TENANT and extra cni-args to cni plugin#1
Merged
h-w-chen merged 1 commit intoarktos-intfrom Jun 17, 2020
Merged
Conversation
yb01
approved these changes
Jun 16, 2020
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind feature
What this PR does / why we need it:
containerd is to be extended to pass pod tenant and key-value pairs in cni-args annotation to cni plugin in form of CNI_ARGS.
containerd, as one of the container runtimes used by Arktos, passes very limited information down to cni plugins. Based on arktos networking design proposal, cni plugin expects CNI_ARGS to have K8S_POD_TENANT and optional key-value pairs as specified by pod cni-args annotation. Containerd is extended to recognize addition of "tenant" field in arktos CRI extension, and ensure the proper args being passed on to CNI as CNI_ARGS.
The extension/customization of containerd include only the new tenant field of PodSandboxMetadata. Any other Arktos CRI extensions not in the scope.
This is part of Arktos support for multi-tenancy multi-network.