postgres-operator/pkg/util
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
..
config Skip config params with no values (#62) 2017-07-14 17:22:25 +02:00
constants Configure load balancer on a per-cluster and operator-wide level (#57) 2017-06-30 13:38:49 +02:00
filesystems Implement replicaLoadBalancer boolean flag. (#38) 2017-06-07 13:54:17 +02:00
k8sutil Feature/unit tests (#53) 2017-07-24 16:56:46 +02:00
retryutil Implement replicaLoadBalancer boolean flag. (#38) 2017-06-07 13:54:17 +02:00
teams Tests for teams API (#46) 2017-06-12 17:29:32 +02:00
users Implement replicaLoadBalancer boolean flag. (#38) 2017-06-07 13:54:17 +02:00
volumes Implement replicaLoadBalancer boolean flag. (#38) 2017-06-07 13:54:17 +02:00
util.go Implement replicaLoadBalancer boolean flag. (#38) 2017-06-07 13:54:17 +02:00
util_test.go fix typos; 2017-06-08 15:52:01 +02:00