Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package main

import (
"context"
"flag"
"fmt"
"net"
"os"
Expand Down Expand Up @@ -171,8 +172,15 @@ func main() {
pgParamBlockList map[string]bool

standbyClusterSourceRanges []string

showVersion = flag.Bool("version", false, "dump current version and exit")
)

flag.Parse()
if *showVersion {
fmt.Println(v.V.String())
os.Exit(0)
}
ctrl.SetLogger(zap.New(zap.UseDevMode(true)))

// TODO enable Prefix and update helm chart
Expand Down