From 120019529489b5cbcf82d77eec228283fb12d43a Mon Sep 17 00:00:00 2001 From: Konrad Bańka Date: Fri, 12 Mar 2021 08:46:20 +0100 Subject: Fix Healthcheck API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Change-Id: I5da50363bb240fdc85d3624f43cb0526786da542 --- src/k8splugin/internal/healthcheck/kubeclient.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/k8splugin/internal/healthcheck/kubeclient.go') 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) -- cgit 1.2.3-korg