Skip to content

Commit

Permalink
Either of the --master or --kubeconfig is sufficient
Browse files Browse the repository at this point in the history
  • Loading branch information
dimm0 committed Jul 29, 2017
1 parent 1d62de7 commit 8d2ed48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func NewKubeRouterDefault(config *options.KubeRouterConfig) (*KubeRouter, error)
var clientconfig *rest.Config
var err error
// Use out of cluster config if the URL or kubeconfig have been specified. Otherwise use incluster config.
if len(config.Master) != 0 && len(config.Kubeconfig) != 0 {
if len(config.Master) != 0 || len(config.Kubeconfig) != 0 {
clientconfig, err = clientcmd.BuildConfigFromFlags(config.Master, config.Kubeconfig)
if err != nil {
return nil, errors.New("Failed to build configuration from CLI: " + err.Error())
Expand Down

0 comments on commit 8d2ed48

Please sign in to comment.