Adding cnishim and cniserver 77/69977/9
authorKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Tue, 21 Apr 2020 17:19:34 +0000 (17:19 +0000)
committerKuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Thu, 17 Sep 2020 23:25:10 +0000 (16:25 -0700)
commit3de63ee756f9d7c0a4524b40a89e92b918a9249f
tree3579bc50aee0a38d7c63c5787fca6205ced7a2df
parent7f01772cdf3916026a93e9e9ac5ce54d57401476
Adding cnishim and cniserver

- inspired from ovn-kubernetes and sdn openshift - cniserver & cnishim concepts
- removed cni binary to depend on the host ovs binary installation
- encapsulated all the binaries within the ovn and ovs containers
- ovn4nfv-k8s cni server run along with nfn-agent
- cnishim act as the httpclient and cniserver as httpservers
- cnishim wrap all the cni commands to cniserver
- cniserver do the actual network pumping work and send result back to cnishim
- cnishim print the results as per the cni spec requirement
- currently supports only debian installation for ovn daemon
- support for debian kernel installation
- Consolidated all yaml into single ovn4nfv-k8s-plugin

Signed-off-by: Kuralamudhan Ramakrishnan <kuralamudhan.ramakrishnan@intel.com>
Change-Id: I1e2b114d90f717baa2ee94ff379c849d73b2754e
15 files changed:
build/Dockerfile
cmd/nfn-agent/nfn-agent.go
cmd/ovn4nfvk8s-cni/app/helper_linux.go
cmd/ovn4nfvk8s-cni/ovn4nfvk8s-cni.go
deploy/ovn4nfv-k8s-plugin.yaml [moved from deploy/ovn4nfv-k8s-plugin-daemonset.yml with 90% similarity]
go.mod
go.sum
internal/pkg/cniserver/cni.go [new file with mode: 0644]
internal/pkg/cniserver/cniserver.go [new file with mode: 0644]
internal/pkg/cnishim/cnishim.go [new file with mode: 0644]
internal/pkg/config/config.go
internal/pkg/ovn/utils.go
pkg/controller/pod/pod_controller.go
utilities/docker/debian/Dockerfile
utilities/kernel/debian/install_kernel_modules.sh [new file with mode: 0755]