Skip to content

Commit

Permalink
feat: print our name and version on startup
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Goldstein <[email protected]>
  • Loading branch information
cardoe committed Apr 24, 2024
1 parent 829ee5e commit eef613f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ import (

var GroupName = os.Getenv("GROUP_NAME")

const banner = `
cert-manager-webhook-rackspace
version: %s (%s)
`

var (
Version = "local"
Gitsha = "?"
)

func main() {
fmt.Printf(banner, Version, Gitsha)

if GroupName == "" {
panic("GROUP_NAME must be specified")
}
Expand Down

0 comments on commit eef613f

Please sign in to comment.