diff --git a/main.go b/main.go index 85aeac9..0f65041 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,7 @@ import ( "github.com/jetstack/cert-manager/pkg/acme/webhook/apis/acme/v1alpha1" "github.com/jetstack/cert-manager/pkg/acme/webhook/cmd" + certmanagerv1 "github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha1" ) var GroupName = os.Getenv("GROUP_NAME") @@ -64,8 +65,8 @@ type customDNSProviderConfig struct { // These fields will be set by users in the // `issuer.spec.acme.dns01.providers.webhook.config` field. - //Email string `json:"email"` - //APIKeySecretRef v1alpha1.SecretKeySelector `json:"apiKeySecretRef"` + Email string `json:"email"` + APIKeySecretRef certmanagerv1.SecretKeySelector `json:"apiKeySecretRef"` } // Name is used as the name for this DNS solver when referencing it on the ACME