mirror of
https://github.com/cert-manager/webhook-example.git
synced 2026-03-16 18:02:51 +01:00
21 lines
574 B
Go
21 lines
574 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/cert-manager/cert-manager/pkg/acme/webhook/cmd"
|
|
"github.com/proton11/cert-manager-desec-webhook/solver"
|
|
)
|
|
|
|
// Entrypoint of the application
|
|
func main() {
|
|
|
|
// Read the custom group name from environment variables
|
|
groupName, ok := os.LookupEnv("GROUP_NAME")
|
|
// Without a custom group name, return the default (also defined in the Helm chart)
|
|
if !ok || groupName == "" {
|
|
groupName = "acme.pr0ton11.github.com"
|
|
}
|
|
// Start the webhook server with our solver
|
|
cmd.RunWebhookServer(groupName, &solver.DeSECDNSProviderSolver{})
|
|
}
|