Commit Graph

15 Commits

Author SHA1 Message Date
Murat Kabilov b2a882f9fd merge with master 2017-07-24 21:42:57 +02:00
Murat Kabilov 035069137a Merge branch 'master' into feature/refactor-tpr
# Conflicts:
#	cmd/main.go
#	pkg/cluster/cluster.go
#	pkg/controller/controller.go
#	pkg/controller/util.go
2017-07-24 21:21:42 +02:00
Murat Kabilov 143eb968ea refactor 2017-07-24 19:38:08 +02:00
Oleksii Kliukin 4455f1b639 Feature/unit tests (#53)
- Avoid relying on Clientset structure to call Kubernetes API functions.
While Clientset is a convinient "catch-all" abstraction for calling
REST API related to different Kubernetes objects, it's impossible to
mock. Replacing it wih the kubernetes.Interface would be quite
straightforward, but would require an exra level of mocked interfaces,
because of the versioning. Instead, a new interface is defined, which
contains only the objects we need of the pre-defined versions.

-  Move KubernetesClient to k8sutil package.
- Add more tests.
2017-07-24 16:56:46 +02:00
Murat Kabilov d7e9142fc7 proper names for constants; some clean up for log messages 2017-07-24 12:37:06 +02:00
Murat Kabilov 2161a0816c use scheme package instead of api 2017-07-18 12:24:15 +02:00
Murat Kabilov 129bcd7bd6 rest client: use interface instead of structure pointer 2017-07-17 17:08:40 +02:00
Murat Kabilov ce2648c62e client-go v4.0.0-beta0
go fmt

glide
2017-07-12 12:54:19 +02:00
Oleksii Kliukin bc0e9ab4bc Add error checks per report from errcheck-ng 2017-06-08 10:41:44 +02:00
Murat Kabilov d34273543e Fix the golint, gosimple warnings 2017-05-18 17:38:54 +02:00
Murat Kabilov 92d7fbf372 replace github.bus.zalan.do with github.cm/zalando-incubator 2017-05-12 11:50:16 +02:00
Murat Kabilov fd449342e5 Use Kubernetes API instead of API group 2017-05-12 11:41:36 +02:00
Oleksii Kliukin 776ed3fa0f Simplify getting configuration. 2017-05-12 11:41:25 +02:00
Murat Kabilov ae77fa15e8 Pod Rolling update
introduce Pod events channel;
add parsing of the MaintenanceWindows section;
skip deleting Etcd key on cluster delete;
use external etcd host;
watch for tpr/pods in the namespace of the operator pod only;
2017-05-12 11:41:25 +02:00
Murat Kabilov abb1173035 Code refactor 2017-05-12 11:37:09 +02:00