code: func tryParseClusterInfoFromConfigMap(cm *v1.ConfigMap) (*clientcmdapi.Config, error) {
  	kubeConfigString, ok := cm.Data[bootstrapapi.KubeConfigKey]
  	if !ok || len(kubeConfigString) == 0 {
  		return nil, errors.Errorf("no %s key in ConfigMap", bootstrapapi.KubeConfigKey)
  	}
  	parsedKubeConfig, err := clientcmd.Load([]byte(kubeConfigString))
  	if err != nil {
  		return nil, errors.Wrapf(err, "couldn't parse the kubeconfig file in the %s ConfigMap", bootstrapapi.ConfigMapClusterInfo)
  	}
  	return parsedKubeConfig, nil
  }
docs: // tryParseClusterInfoFromConfigMap tries to parse a kubeconfig file from a ConfigMap key