diff --git a/admission-webhook/main.go b/admission-webhook/main.go index 118db591..0f54b7f9 100644 --- a/admission-webhook/main.go +++ b/admission-webhook/main.go @@ -15,8 +15,14 @@ func main() { initLogrus() enableCertReload := flag.Bool("cert-reload", false, "enable certificate reload") + v := flag.Bool("version", false, "show version") flag.Parse() + if *v { + fmt.Printf("windows-gmsa-webhook v%s\n", getVersion()) + os.Exit(0) + } + kubeClient, err := createKubeClient() if err != nil { panic(err)