code: func CreateOrUpdateDaemonSet(client clientset.Interface, ds *apps.DaemonSet) error {
  	if _, err := client.AppsV1().DaemonSets(ds.ObjectMeta.Namespace).Create(ds); err != nil {
  		if !apierrors.IsAlreadyExists(err) {
  			return errors.Wrap(err, "unable to create daemonset")
  		}
  
  		if _, err := client.AppsV1().DaemonSets(ds.ObjectMeta.Namespace).Update(ds); err != nil {
  			return errors.Wrap(err, "unable to update daemonset")
  		}
  	}
  	return nil
  }
docs: // CreateOrUpdateDaemonSet creates a DaemonSet if the target resource doesn't exist. If the resource exists already, this function will update the resource instead.