-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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 dns capabilities for Windows CNI plugins #67435
Conversation
@feiskyer: GitHub didn't allow me to assign the following users: madhanrm, dineshgovindasamy. Note that only kubernetes members and repo collaborators can be assigned. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
/milestone v1.12 |
@dineshgovindasamy or @madhanrm - can you do a review and update wincni? |
/test pull-kubernetes-e2e-kops-aws |
/LGTM @madhanrm any comments? |
lgtm |
@Random-Liu @dcbw Could you help to take a look at this PR? |
/test pull-kubernetes-kubemark-e2e-gce-big |
@@ -389,5 +403,17 @@ func (plugin *cniNetworkPlugin) buildCNIRuntimeConf(podName string, podNs string | |||
// Set the PodCIDR | |||
rt.CapabilityArgs["ipRanges"] = [][]cniIpRange{{{Subnet: plugin.podCidr}}} | |||
|
|||
// Set dns capability args. | |||
if dnsOptions, ok := options["dns"]; ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
options
could be nil
, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, ok will be false in that case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it would panic. surprised it won't.
we should have a better abstraction for windows/linux implementation to reconcile as @thockin pointed out. but it's not necessarily blocking this PR. |
@dchen1107 @thockin to approve? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, feiskyer 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 |
/test pull-kubernetes-e2e-kops-aws |
/retest |
@nikopen @dchen1107 @anfernee Thanks a lot for reviewing!
#60338 (comment) is tracking this. @anfernee Appreciate if you have other suggestions to make it better. |
/retest |
/retest Review the full test history for this PR. Silence the bot with an |
What this PR does / why we need it:
This PR adds dns capabilities for Windows CNI plugins, so that Windows plugins could setup container's dns based on the capability.
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 #66801 #66588 #65016
Special notes for your reviewer:
Windows CNI plugins should be updated with supporting dns capability.
See also #63905 (comment).
Release note:
/sig windows
/sig network
/assign @PatrickLang @madhanrm @dineshgovindasamy @dcbw