diff --git a/cmd/openshift-router/main.go b/cmd/openshift-router/main.go index f1a90010..b531f0b2 100644 --- a/cmd/openshift-router/main.go +++ b/cmd/openshift-router/main.go @@ -31,10 +31,6 @@ func main() { logFlags := flag.FlagSet{} klog.InitFlags(&logFlags) cmd.PersistentFlags().AddGoFlagSet(&logFlags) - if err := cmd.ParseFlags(os.Args); err != nil { - fmt.Fprintf(os.Stderr, "error: %v\n", err) - os.Exit(1) - } if err := cmd.Execute(); err != nil { fmt.Fprintf(os.Stderr, "error: %v\n", err) diff --git a/images/router/haproxy/Dockerfile b/images/router/haproxy/Dockerfile index 56dba58e..b49f3fe1 100644 --- a/images/router/haproxy/Dockerfile +++ b/images/router/haproxy/Dockerfile @@ -18,4 +18,4 @@ EXPOSE 80 443 WORKDIR /var/lib/haproxy/conf ENV TEMPLATE_FILE=/var/lib/haproxy/conf/haproxy-config.template \ RELOAD_SCRIPT=/var/lib/haproxy/reload-haproxy -ENTRYPOINT ["/usr/bin/openshift-router"] +ENTRYPOINT ["/usr/bin/openshift-router", "--v=2"] diff --git a/images/router/haproxy/Dockerfile.rhel b/images/router/haproxy/Dockerfile.rhel index 4998ca75..f42ec589 100644 --- a/images/router/haproxy/Dockerfile.rhel +++ b/images/router/haproxy/Dockerfile.rhel @@ -18,4 +18,4 @@ EXPOSE 80 443 WORKDIR /var/lib/haproxy/conf ENV TEMPLATE_FILE=/var/lib/haproxy/conf/haproxy-config.template \ RELOAD_SCRIPT=/var/lib/haproxy/reload-haproxy -ENTRYPOINT ["/usr/bin/openshift-router"] +ENTRYPOINT ["/usr/bin/openshift-router", "--v=2"]