12 Commits

Author SHA1 Message Date
Harry Zhang
feed3031f4 Release note 1.0beta
Change-Id: I68e965afc3ab47dcbbaf9961e9d5ff87a7f8c3aa
2017-08-31 15:17:57 +08:00
Kevin Zhao
3eda49669c Add "--version" parameters to cmd
Closes-bug: #1712486

Change-Id: I824bba993fa82eb0c74b53c7b2cb7835c3e53b37
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2017-08-25 17:20:54 +08:00
mozhulee
30669fdc5b Use interface
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>
2017-08-21 17:32:02 +08:00
Pengfei Ni
50322401cd Add kube-dns
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>
2017-08-04 08:56:27 +08:00
Pengfei Ni
681f75ddd0 Add LICENSE for files
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>
2017-07-28 16:09:52 +08:00
Pengfei Ni
c847f5e5a5 Add service controller
- 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>
2017-07-26 20:54:24 +08:00
Harry Zhang
8456f51d7f Add auto network when tenant is added
Move tenant to default system ns

Delete auto network when tenant is deleted

Implements: blueprint cni-controller

Change-Id: I886d9ee4892297461c7a1d2eb02570c8c14bd581
2017-07-21 17:12:11 +08:00
Harry Zhang
a0de58d447 Refactor tenant client
Deal with tenantID provided case

Change-Id: Ia01028d21fe258a97175fcc8ce103cc82df37291
2017-07-20 09:57:24 +08:00
Harry Zhang
e2f1a14c1d Fix system namespace
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
2017-07-17 14:43:22 +08:00
Pengfei Ni
7bb760620f Rework 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>
2017-07-07 15:44:11 +08:00
Pengfei Ni
7d90e0b1f4 Optimize flags and logs.
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>
2017-06-30 14:07:26 +08:00
Harry Zhang
76ef989737 Use trp to handle network
Change-Id: I1ff5c2d858d4f68a98867ef845887200b9561af0
2017-06-28 19:22:08 +08:00