Container networking plugins for Windows containers
Перейти к файлу
Vikas Bhardwaj 4077d162c7 Initial changes for ipv6 support for l2bridge network 2021-04-26 09:52:31 -07:00
cni Initial changes for ipv6 support for l2bridge network 2021-04-26 09:52:31 -07:00
common Initial changes for ipv6 support for l2bridge network 2021-04-26 09:52:31 -07:00
example Initial changes for ipv6 support for l2bridge network 2021-04-26 09:52:31 -07:00
network Initial changes for ipv6 support for l2bridge network 2021-04-26 09:52:31 -07:00
plugins Adds full unit test, test code clean-up 2019-04-22 21:44:58 -07:00
test Adds resiliency to sync delete calls for same endpoint, gofmt 2019-10-23 20:26:49 -07:00
vendor Revendor to hcsshim v0.8.9 to remove CGO dependency 2020-07-20 20:54:34 +10:00
.gitattributes Initial Commit 2017-03-29 14:33:48 -07:00
.gitignore Add containerized golang build environment 2019-04-15 18:12:55 +00:00
Gopkg.lock vendor update 2019-04-09 16:45:05 -07:00
Gopkg.toml vendor update 2019-04-09 16:45:05 -07:00
LICENSE Restructures the Repo, adds a makefile, contains various bug fixes and also includes 2 commits from Madhan and Eric (adding dns capabilities and fixing policies and a bug fix) 2019-01-11 18:22:42 -08:00
Makefile Add GO111MODULE=on as a local parameter for a build 2019-10-17 15:35:09 -07:00
README.md Update to latest build image, clarify usage 2019-04-15 18:19:08 +00:00
azure-pipelines.yml Change pipelines to use a windows vm. Add tests during pipeline step. Loosen requirement on curl test 2019-09-27 20:07:00 -07:00
go.mod Remove unused entries from go.mod 2020-07-21 00:00:31 +10:00
go.sum Revendor to hcsshim v0.8.9 to remove CGO dependency 2020-07-20 20:54:34 +10:00

README.md

Windows Container Networking CNI

Go Report Card

Overview

This repo contains plugins meant for testing/development of latest windows features. Their primary use case right now is with a CRI and containerd

CNI Plugins Available

  • sdnoverlay
  • nat
  • sdnbridge

Releases

Currently you must build the binaries yourself (see below)

  • ToDo: Automated Release

Build

These plugins are made for windows and need to be compiled for windows. However, you can cross-compile them from Linux.

If you have make installed on your system:

make all - will build all plugins: nat.exe, sdnbridge.exe, and sdnoverlay.exe make <plugin> - will build an individual plugin

Else:

GOOS=windows GOARCH=amd64 go build -v -o out/<plugin>.exe plugins/<plugin>/*.go

Building inside a Linux container

On a Linux machine, run make dev, then make all. That will cross-build the Windows binaries in a clean environment.

Testing

There is a test suite that should be run (make test) before any changes. Opening a PR should trigger a Jenkins run that will run all the tests. If you wish to run them locally, you'll need a nanoserver image pulled from docker.

Currently there are two groups of end-to-end tests shared by all the plugins

  • Properties Verification - tests an add command and verifies that the resulting state is as expected. I.e. we attach an endpoint that endpoint has policy x,y,z etc.
  • Connectivity Testing - creates a container and makes a CNI call for it and verifies that the container has connectivity for pod-to-pod, host-to-pod, pod-to-host, and pod-to-internet

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.