Remove checking of kubeconfig in root cmd
We will be checking it in install subcommand
@@ -31,22 +31,12 @@ func Execute() {
RegisterInstall(rootCmd)
- ExitIfError(ensureKubeConfig())
-
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(-1)
}
}
-func ensureKubeConfig() error {
- if kubeconfig = os.Getenv("KUBECONFIG"); kubeconfig == "" {
- return errors.New("KUBECONFIG environment variable not set!")
- }
-
- return nil
-}
-
func checkDependencies() error {
ok := true
