From e4ab1da9420608d68d4cc479cdf0ed232aff4fb1 Mon Sep 17 00:00:00 2001 From: roytev Date: Tue, 8 Feb 2022 10:08:15 +0200 Subject: update version and fix Signed-off-by: Roi Teveth --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 85aeac9..39602dc 100644 --- a/main.go +++ b/main.go @@ -3,9 +3,9 @@ package main import ( "encoding/json" "fmt" + "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" "os" - extapi "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" //"k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" @@ -133,7 +133,7 @@ func (c *customDNSProviderSolver) Initialize(kubeClientConfig *rest.Config, stop // loadConfig is a small helper function that decodes JSON configuration into // the typed config struct. -func loadConfig(cfgJSON *extapi.JSON) (customDNSProviderConfig, error) { +func loadConfig(cfgJSON *v1.JSON) (customDNSProviderConfig, error) { cfg := customDNSProviderConfig{} // handle the 'base case' where no configuration has been provided if cfgJSON == nil { -- cgit v1.2.3 From 7db2a3e28c46b5c4274b6f6caf910572cedf20fb Mon Sep 17 00:00:00 2001 From: roytev Date: Tue, 8 Feb 2022 10:47:55 +0200 Subject: fixes from review Signed-off-by: Roi Teveth --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 39602dc..33937cb 100644 --- a/main.go +++ b/main.go @@ -3,9 +3,9 @@ package main import ( "encoding/json" "fmt" - "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" "os" + extapi "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1" //"k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" @@ -133,7 +133,7 @@ func (c *customDNSProviderSolver) Initialize(kubeClientConfig *rest.Config, stop // loadConfig is a small helper function that decodes JSON configuration into // the typed config struct. -func loadConfig(cfgJSON *v1.JSON) (customDNSProviderConfig, error) { +func loadConfig(cfgJSON *extapi.JSON) (customDNSProviderConfig, error) { cfg := customDNSProviderConfig{} // handle the 'base case' where no configuration has been provided if cfgJSON == nil { -- cgit v1.2.3