23 lines
417 B
Go
23 lines
417 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/cert-manager/cert-manager/tree/master/pkg/acme/webhook/cmd"
|
|
|
|
"github.com/stuurmcp/cert-manager-webhook-sthome/pkg/dns"
|
|
)
|
|
|
|
// GroupName is the name under which the webhook will be available
|
|
var GroupName = os.Getenv("GROUP_NAME")
|
|
|
|
func main() {
|
|
if GroupName == "" {
|
|
panic("GROUP_NAME must be specified")
|
|
}
|
|
|
|
cmd.RunWebhookServer(GroupName,
|
|
&dns.ProviderSolver{},
|
|
)
|
|
}
|