summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorroytev <roytev@gmail.com>2022-02-08 10:08:15 +0200
committerroytev <roytev@gmail.com>2022-02-08 10:24:16 +0200
commite4ab1da9420608d68d4cc479cdf0ed232aff4fb1 (patch)
tree46d8c5a2549fc337d8051176e2762cc77f93e3a0 /main.go
parent9440683e53e15c70f7161a0f0c09000d8515b96f (diff)
downloadcert-manager-webhook-hostinger-e4ab1da9420608d68d4cc479cdf0ed232aff4fb1.tar.gz
cert-manager-webhook-hostinger-e4ab1da9420608d68d4cc479cdf0ed232aff4fb1.zip
update version and fix
Signed-off-by: Roi Teveth <roytev@gmail.com>
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
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 {