code: func IsControlPlaneSelfHosted(client clientset.Interface) bool {
  	notReadyDaemonSets, err := getNotReadyDaemonSets(client)
  	if err != nil {
  		return false
  	}
  
  	// If there are no NotReady DaemonSets, we are using selfhosting
  	return len(notReadyDaemonSets) == 0
  }
docs: // IsControlPlaneSelfHosted returns whether the control plane is self hosted or not