func contextConfig() (clientcmd.ClientConfigLoader, *clientcmdapi.Config, error) {
	if err := ensureKubectl(); err != nil {
		fmt.Println("Prow's tackler requires kubectl, please install:")
		fmt.Println("  *", err)
		if gerr := ensureGcloud(); gerr != nil {
			fmt.Println("  *", gerr)
		}
		return nil, nil, errors.New("missing kubectl")
	}

	l := clientcmd.NewDefaultClientConfigLoadingRules()
	c, err := l.Load()
	return l, c, err
}
func contextConfig() (clientcmd.ClientConfigLoader, *clientcmdapi.Config, error) {
	if err := ensureKubectl(); err != nil {
		fmt.Println("Prow's tackler requires kubectl, please install:")
		fmt.Println("  *", err)
		if gerr := ensureGcloud(); gerr != nil {
			fmt.Println("  *", gerr)
		}
		return nil, nil, errors.New("missing kubectl")
	}

	l := clientcmd.NewDefaultClientConfigLoadingRules()
	c, err := l.Load()
	return l, c, err
}
func contextConfig ( ) ( clientcmd . ClientConfigLoader , * clientcmdapi . Config , error ) { if err := ensureKubectl ( ) ; err != nil { fmt . Println ( " " ) fmt . Println ( " " , err ) if gerr := ensureGcloud ( ) ; gerr != nil { fmt . Println ( " " , gerr ) } return nil , nil , errors . New ( " " ) } l := clientcmd . NewDefaultClientConfigLoadingRules ( ) c , err := l . Load ( ) return l , c , err }
// contextConfig returns the loader and config, which can create a clientconfig.
contextConfig returns the loader and config which can create a clientconfig .