code: func ConfigFromContext(name string, s store.Reader) (clientcmd.ClientConfig, error) {
  	ctxMeta, err := s.GetMetadata(name)
  	if err != nil {
  		return nil, err
  	}
  	epMeta := EndpointFromContext(ctxMeta)
  	if epMeta != nil {
  		ep, err := epMeta.WithTLSData(s, name)
  		if err != nil {
  			return nil, err
  		}
  		return ep.KubernetesConfig(), nil
  	}
  	// context has no kubernetes endpoint
  	return kubernetes.NewKubernetesConfig(""), nil
  }
docs: // ConfigFromContext resolves a kubernetes client config for the specified context.
  // If kubeconfigOverride is specified, use this config file instead of the context defaults.ConfigFromContext
  // if command.ContextDockerHost is specified as the context name, fallsback to the default user's kubeconfig file