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 Host NC communication support in Windows with HnsV2 #1

Open
wants to merge 36 commits into
base: containerd-cow
Choose a base branch
from

Conversation

ashvindeodhar
Copy link
Owner

This PR adds support for host NC bidirectional communication with windows HnsV2. This is supported in multitenant scenario only. AllowHostToNCCommunication and AllowNCToHostCommunication flags are used to enable Host to NC and NC to host communication respectively.

What this PR does / why we need it:

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

Special notes for your reviewer:

Release note:

tamilmani1989 and others added 2 commits October 16, 2019 13:08
…Azure#421)

* added application insights telemetry package to send metrics and logs to appinsights

* moved a function common to both packages
acquired a lock before writing to file

* added read write lock as per chandan comment. Addressed jaeryn comments

* fixed telemetry unit test

* defined interface and added appinsights package as vendor to acn

* added vendor package.go(appinsights)

* dependencies of appinsights

* added AI dependencies

* updated unit tests

* addressed review comments
cni/network/network.go Outdated Show resolved Hide resolved
cni/network/network.go Outdated Show resolved Hide resolved
cni/network/network.go Outdated Show resolved Hide resolved
cns/cnsclient/cnsclient.go Outdated Show resolved Hide resolved
cns/cnsclient/cnsclient.go Outdated Show resolved Hide resolved
cns/hnsclient/hnsclient_windows.go Show resolved Hide resolved
cns/hnsclient/hnsclient_windows.go Show resolved Hide resolved
cns/hnsclient/hnsclient_windows.go Show resolved Hide resolved
common/namedlock.go Show resolved Hide resolved
network/endpoint_windows.go Outdated Show resolved Hide resolved
ashvindeodhar pushed a commit that referenced this pull request Jun 13, 2021
…ure#836)

* Junguk cho pod controller support (#1)

* code layout to support pod controller in npm

* filter events if they do not need to handle and clean up business logic

* put lock when it needs to access shared resource
use namespace/name as key
clean up functions

* - use pod key instead of uid.
- remove unnecessary error check

* use namespace prefix in pod namespace. add log messages to know what events happens.

* move event logs with more contexts in needsync func

* Put returning an error in a right place

* Return if the RV of both pod obj are the same. Proactively start cleaning up pod when the pod is deleted.

* first version of podController UT

* add ipset management in pod controller unit test

* Make methods flexible for ipset store and restore operation

* clean up functions and variables

Co-authored-by: Junguk Cho <jungukcho@microsoft.com>

* correct and clean functions and error messages. Return errors from appendNamedPortIpsets function to retry syncPod operation

* Check npmPod exists in cleanUpDeletedPod function. Use GetIPSetListFromLabels in syncAddedPod and cleanUpDeletedPod functions. Correct error messages, functions, etc

* Clean up podController code. Make podController UT more flexible.

* clean up appendNamedPortIpsets to improve readibility

* minor update (v1 -> corev1) for consistency

* clean up syncPod code to compare last applied states and new pod's states

* add validation for casting old pod. correct log message

* delete unneeded codes

* minor fix: correct comments and removed unneeded variables

* add pre-filter codes to avoid unnecessary reconcile process in updatePod event

* correct a comment

* check workqueue length to validate case where it does not need to reconcile in unit test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants