Update openstack client and iptables to use interface, so we
can fake openstack client and iptables for unit tests.
Change-Id: Id97eef2b9b36002b0c70a069a3718328d111ffd3
Implements: blueprint enhance-unit-testing
Signed-off-by: mozhuli <21621232@zju.edu.cn>
Adds kube-dns deployments for each tenant. And also adds loadbalancer
for cluster DNS in each namespace.
Implements: blueprint dns
Change-Id: I2ee00806431cc4a3dfdf4c3c49b54892d4c2c98b
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
This PR adds license for all files. It also adds a script
hack/verify-boilerplate.sh for checking whether license is
set correctly.
Change-Id: Ib691187f3128f6787510aa914d5c0e01e8e1b22f
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
- Add a service controller in stackube and create lbaas v2 pools for new services,
also add members for endpoints.
- Fix getting network for system namespaces.
Change-Id: I7942a2d26dd33b4ceb75ec51c03933205a60aea7
Implements: blueprint service-loadbalancer
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
Move tenant to default system ns
Delete auto network when tenant is deleted
Implements: blueprint cni-controller
Change-Id: I886d9ee4892297461c7a1d2eb02570c8c14bd581
Create tenant and network for 3 namespaces:
default, kube-system, kube-public
They will share "default" tenant and "kube-default-default-network"
Change-Id: I4cb195d544a5a8d6d3fdd356a3a89582daaafdbf
Implements: blueprint auth-controller
This PR reworks auth controller to use informer framework.
It also fix the problem of tenant and user not created.
Change-Id: I017032f2eb4d83440319729d9f1fb13351f4d72b
Closes-Bug: 1702841
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
Usage of ./stackube-controller:
--alsologtostderr log to standard error as well as files
--cloudconfig string path to stackube config file (default "/etc/stackube.conf")
--kubeconfig string path to kubernetes admin config file (default "/etc/kubernetes/admin.conf")
--log-backtrace-at traceLocation when logging hits line file:N, emit a stack trace (default :0)
--log-dir string If non-empty, write log files in this directory
--log-flush-frequency duration Maximum number of seconds between log flushes (default 5s)
--logtostderr log to standard error instead of files (default true)
--stderrthreshold severity logs at or above this threshold go to stderr (default 2)
-v, --v Level log level for V logs
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
Change-Id: I2dfa762c3e076c7e41b49b4f27c3868bed03eba8
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>