diff options
author | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2022-04-11 20:36:00 +0200 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@orange.com> | 2022-04-11 20:36:23 +0200 |
commit | e503b0942f87b5e3a9f43e8395dcd6d185b8d9ca (patch) | |
tree | 7a6f28a6718e153043ff6a428af83c886203e14f /src/k8splugin/internal/db/etcd_testing.go | |
parent | 76b4c1981e361b52e94c1545e15a9d90ed311b1e (diff) |
Fixed detection of the etcd connection status
Issue-ID: MULTICLOUD-1468
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: If243e9a484afe5db7d9538a1875241fa425a2516
Diffstat (limited to 'src/k8splugin/internal/db/etcd_testing.go')
-rw-r--r-- | src/k8splugin/internal/db/etcd_testing.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/k8splugin/internal/db/etcd_testing.go b/src/k8splugin/internal/db/etcd_testing.go index 2f62d365..4022d30e 100644 --- a/src/k8splugin/internal/db/etcd_testing.go +++ b/src/k8splugin/internal/db/etcd_testing.go @@ -24,6 +24,10 @@ type MockEtcdClient struct { Err error } +func (c *MockEtcdClient) HealthCheck() error { + return c.Err +} + func (c *MockEtcdClient) Put(key, value string) error { if c.Items == nil { c.Items = make(map[string]string) |