func Install(version string) error {
	binary, err := getBinary(version)
	if err != nil {
		return err
	}
	defer binary.Close()
	f, err := os.Create(kubectlPath)
	if err != nil {
		return err
	}
	defer f.Close()
	_, err = io.Copy(f, binary)
	if err != nil {
		return err
	}

	return os.Chmod(kubectlPath, os.ModePerm)
}
// Install installs the desired version of kubectl
Install installs the desired version of kubectl
// Install installs the desired version of kubectl
func Install(version string) error {
	binary, err := getBinary(version)
	if err != nil {
		return err
	}
	defer binary.Close()
	f, err := os.Create(kubectlPath)
	if err != nil {
		return err
	}
	defer f.Close()
	_, err = io.Copy(f, binary)
	if err != nil {
		return err
	}
	return os.Chmod(kubectlPath, os.ModePerm)
}
func Install ( version string ) error { binary , err := getBinary ( version ) if err != nil { return err } defer binary . Close ( ) f , err := os . Create ( kubectlPath ) if err != nil { return err } defer f . Close ( ) _ , err = io . Copy ( f , binary ) if err != nil { return err } return os . Chmod ( kubectlPath , os . ModePerm ) }
Install installs the desired version of kubectl
Install installs the desired version of kubectl