Skip to content

Commit

Permalink
Remove unused value CfgFile (#173)
Browse files Browse the repository at this point in the history
This patch removes unused `CfgFile` value from codes.
  • Loading branch information
nak3 authored and knative-prow-robot committed Jun 10, 2019
1 parent 1b471d5 commit 176cb0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkg/kn/commands/test_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ Eventing: Manage event subscriptions and channels. Connect up event sources.`,
if params.Output != nil {
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.AddCommand(subCommand)
Expand Down
3 changes: 0 additions & 3 deletions pkg/kn/commands/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ import (
"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
var KubeCfgFile string

Expand Down

0 comments on commit 176cb0e

Please sign in to comment.