mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-15 17:51:03 +00:00
Process non-cobra flags
This commit is contained in:
parent
c64c199236
commit
02c746a0e5
1 changed files with 3 additions and 0 deletions
3
main.go
3
main.go
|
@ -23,6 +23,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
goflag "flag"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
|
@ -34,6 +35,7 @@ import (
|
|||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/spf13/cobra"
|
||||
flag "github.com/spf13/pflag"
|
||||
"k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/client-go/kubernetes"
|
||||
|
@ -87,6 +89,7 @@ func init() {
|
|||
}
|
||||
|
||||
func main() {
|
||||
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)
|
||||
cmdMain.Execute()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue