Skip to content
Permalink
Browse files

add kubeconfig flag (#192)

Signed-off-by: yeya24 <yb532204897@gmail.com>
  • Loading branch information...
yeya24 authored and k8s-ci-robot committed Jul 31, 2019
1 parent 91ec254 commit e98eb3c07cdad35853ab829286beebceda8740f8
@@ -44,6 +44,8 @@ func NewServerOption() *ServerOption {

// AddFlags adds flags for a specific CMServer to the specified FlagSet.
func (s *ServerOption) AddFlags(fs *flag.FlagSet) {
fs.StringVar(&s.Kubeconfig, "kubeconfig", "", "The path of kubeconfig file")

fs.StringVar(&s.MasterURL, "master", "",
`The url of the Kubernetes API server,
will overrides any value in kubeconfig, only required if out-of-cluster.`)
@@ -39,6 +39,8 @@ func NewServerOption() *ServerOption {

// AddFlags adds flags for a specific CMServer to the specified FlagSet.
func (s *ServerOption) AddFlags(fs *flag.FlagSet) {
fs.StringVar(&s.Kubeconfig, "kubeconfig", "", "The path of kubeconfig file")

fs.StringVar(&s.MasterURL, "master", "",
`The url of the Kubernetes API server,
will overrides any value in kubeconfig, only required if out-of-cluster.`)

0 comments on commit e98eb3c

Please sign in to comment.
You can’t perform that action at this time.