diff options
author | Konrad Bańka <k.banka@samsung.com> | 2021-03-12 08:46:20 +0100 |
---|---|---|
committer | Konrad Bańka <k.banka@samsung.com> | 2021-03-31 18:34:14 +0200 |
commit | 120019529489b5cbcf82d77eec228283fb12d43a (patch) | |
tree | dd404d0816bf0c86db0ced390c67fadd619900a1 /src/k8splugin/internal/healthcheck/kubeclient.go | |
parent | 4068b83937c490e638db0b8b0aceb8b7a88b7461 (diff) |
Fix Healthcheck API
Fix several issues related to Healthcheck creation.
Updated GET/DELETE methods to work properly.
This commit leaves few FIXME/TODOs that will be handled within Helm3
Rebase commit
Issue-ID: MULTICLOUD-1308
Signed-off-by: Konrad Bańka <k.banka@samsung.com>
Change-Id: I5da50363bb240fdc85d3624f43cb0526786da542
Diffstat (limited to 'src/k8splugin/internal/healthcheck/kubeclient.go')
-rw-r--r-- | src/k8splugin/internal/healthcheck/kubeclient.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/k8splugin/internal/healthcheck/kubeclient.go b/src/k8splugin/internal/healthcheck/kubeclient.go index be4c6fcc..2a168a78 100644 --- a/src/k8splugin/internal/healthcheck/kubeclient.go +++ b/src/k8splugin/internal/healthcheck/kubeclient.go @@ -25,13 +25,15 @@ import ( //implements environment.KubeClient but overrides it so that //custom labels can be injected into created resources -// using internal k8sClient +//using internal k8sClient type KubeClientImpl struct { environment.KubeClient labels map[string]string k app.KubernetesClient } +var _ environment.KubeClient = KubeClientImpl{} + func NewKubeClient(instanceId, cloudRegion string) (*KubeClientImpl, error) { k8sClient := app.KubernetesClient{} err := k8sClient.Init(cloudRegion, instanceId) |