fixes from review

Signed-off-by: Roi Teveth <roytev@gmail.com>
This commit is contained in:
roytev
2022-02-08 10:47:55 +02:00
parent e4ab1da942
commit 7db2a3e28c
4 changed files with 6 additions and 6 deletions

View File

@@ -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 {