aboutsummaryrefslogtreecommitdiffstats
path: root/src/k8splugin/internal/healthcheck/kubeclient.go
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2021-04-02 13:14:11 +0000
committerGerrit Code Review <gerrit@onap.org>2021-04-02 13:14:11 +0000
commite9a12efd25a570e64b728d8fc482939a727e9214 (patch)
treea0806977f1f153380a9dad9bd84679d9a9eb0ff1 /src/k8splugin/internal/healthcheck/kubeclient.go
parent705fad712373e73463fff22a3136e6e92b372048 (diff)
parent120019529489b5cbcf82d77eec228283fb12d43a (diff)
Merge "Fix Healthcheck API"
Diffstat (limited to 'src/k8splugin/internal/healthcheck/kubeclient.go')
-rw-r--r--src/k8splugin/internal/healthcheck/kubeclient.go4
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)