postgres-operator/pkg/controller
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
..
controller.go Feature/unit tests (#53) 2017-07-24 16:56:46 +02:00
pod.go Feature/unit tests (#53) 2017-07-24 16:56:46 +02:00
postgresql.go Fix resync of the clusters 2017-06-08 11:51:48 +02:00
util.go Feature/unit tests (#53) 2017-07-24 16:56:46 +02:00
util_test.go Feature/unit tests (#53) 2017-07-24 16:56:46 +02:00