summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorJames Munnelly <james@munnelly.eu>2019-04-29 17:55:26 +0100
committerJames Munnelly <james@munnelly.eu>2019-04-29 17:55:46 +0100
commit3935fd70e743931e6322bf088cd3e1c866f2e2cd (patch)
tree5eca322b82b303ab26b9ccb2565b38a46febfb82 /main.go
parent2764e68e074ce4eb7c7ad3d6ee3aaaa59e2fd1de (diff)
downloadcert-manager-webhook-hostinger-3935fd70e743931e6322bf088cd3e1c866f2e2cd.tar.gz
cert-manager-webhook-hostinger-3935fd70e743931e6322bf088cd3e1c866f2e2cd.zip
Update Helm chart and Dockerfile
Signed-off-by: James Munnelly <james@munnelly.eu>
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/main.go b/main.go
index 2ba407f..8a4c78b 100644
--- a/main.go
+++ b/main.go
@@ -8,8 +8,8 @@ import (
//"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
- "github.com/jetstack/cert-manager/pkg/acme/webhook/cmd"
"github.com/jetstack/cert-manager/pkg/acme/webhook/apis/acme/v1alpha1"
+ "github.com/jetstack/cert-manager/pkg/acme/webhook/cmd"
)
const GroupName = "acme.mycompany.com"
@@ -88,7 +88,7 @@ func (c *customDNSProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error {
fmt.Printf("Decoded configuration %v", cfg)
// TODO: add code that sets a record in the DNS provider's console
- panic("implement me")
+ return nil
}
// CleanUp should delete the relevant TXT record from the DNS provider console.
@@ -99,7 +99,7 @@ func (c *customDNSProviderSolver) Present(ch *v1alpha1.ChallengeRequest) error {
// concurrently.
func (c *customDNSProviderSolver) CleanUp(ch *v1alpha1.ChallengeRequest) error {
// TODO: add code that deletes a record from the DNS provider's console
- panic("implement me")
+ return nil
}
// Initialize will be called when the webhook first starts.
@@ -123,8 +123,7 @@ func (c *customDNSProviderSolver) Initialize(kubeClientConfig *rest.Config, stop
//c.client = cl
///// END OF CODE TO MAKE KUBERNETES CLIENTSET AVAILABLE
-
- panic("implement me")
+ return nil
}
// loadConfig is a small helper function that decodes JSON configuration into