diff options
| author | James Munnelly <munnerz@users.noreply.github.com> | 2019-04-29 18:48:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-29 18:48:04 +0100 |
| commit | f06ad32f094c0d8e4fe1801d0775771b5de19009 (patch) | |
| tree | 8638b1e79253b8fbca0623e4f6586b9e8bff1187 /main.go | |
| parent | 3935fd70e743931e6322bf088cd3e1c866f2e2cd (diff) | |
| parent | a598b0e12668be45d7346f761b0b00432e40fa11 (diff) | |
| download | cert-manager-webhook-hostinger-f06ad32f094c0d8e4fe1801d0775771b5de19009.tar.gz cert-manager-webhook-hostinger-f06ad32f094c0d8e4fe1801d0775771b5de19009.zip | |
Merge pull request #1 from munnerz/deployment-updates
Build and deployment fixes
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -3,6 +3,7 @@ package main import ( "encoding/json" "fmt" + "os" extapi "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1" //"k8s.io/client-go/kubernetes" @@ -12,9 +13,13 @@ import ( "github.com/jetstack/cert-manager/pkg/acme/webhook/cmd" ) -const GroupName = "acme.mycompany.com" +var GroupName = os.Getenv("GROUP_NAME") func main() { + if GroupName == "" { + panic("GROUP_NAME must be specified") + } + // This will register our custom DNS provider with the webhook serving // library, making it available as an API under the provided GroupName. // You can register multiple DNS provider implementations with a single |
