Skip to content

Commit

Permalink
add --version
Browse files Browse the repository at this point in the history
  • Loading branch information
AbelHu committed Nov 14, 2024
1 parent 6fd81a8 commit 933c391
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admission-webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 933c391

Please # to comment.