code: func CheckLocalEtcdClusterStatus(client clientset.Interface, cfg *kubeadmapi.ClusterConfiguration) error {
  	klog.V(1).Info("[etcd] Checking etcd cluster health")
  
  	// creates an etcd client that connects to all the local/stacked etcd members
  	klog.V(1).Info("creating etcd client that connects to etcd pods")
  	etcdClient, err := etcdutil.NewFromCluster(client, cfg.CertificatesDir)
  	if err != nil {
  		return err
  	}
  
  	// Checking health state
  	_, err = etcdClient.GetClusterStatus()
  	if err != nil {
  		return errors.Wrap(err, "etcd cluster is not healthy")
  	}
  
  	return nil
  }
docs: // CheckLocalEtcdClusterStatus verifies health state of local/stacked etcd cluster before installing a new etcd member