Remove unused value CfgFile (#173)

This patch removes unused `CfgFile` value from codes.
This commit is contained in:
Kenjiro Nakayama 2019-06-11 03:04:43 +09:00 committed by Knative Prow Robot
parent 1b471d587f
commit 176cb0ea72
2 changed files with 0 additions and 4 deletions

View File

@ -55,7 +55,6 @@ Eventing: Manage event subscriptions and channels. Connect up event sources.`,
if params.Output != nil { if params.Output != nil {
rootCmd.SetOutput(params.Output) rootCmd.SetOutput(params.Output)
} }
rootCmd.PersistentFlags().StringVar(&CfgFile, "config", "", "config file (default is $HOME/.kn.yaml)")
rootCmd.PersistentFlags().StringVar(&KubeCfgFile, "kubeconfig", "", "kubectl config file (default is $HOME/.kube/config)") rootCmd.PersistentFlags().StringVar(&KubeCfgFile, "kubeconfig", "", "kubectl config file (default is $HOME/.kube/config)")
rootCmd.AddCommand(subCommand) rootCmd.AddCommand(subCommand)

View File

@ -21,9 +21,6 @@ import (
"k8s.io/client-go/tools/clientcmd" "k8s.io/client-go/tools/clientcmd"
) )
// CfgFile is Kn's config file is the path for the Kubernetes config
var CfgFile string
// KubeCfgFile is the path for the Kubernetes config // KubeCfgFile is the path for the Kubernetes config
var KubeCfgFile string var KubeCfgFile string