code: func daemonSetMatch(ds *appsv1.DaemonSet, history *appsv1.ControllerRevision) (bool, error) {
  	patch, err := getDaemonSetPatch(ds)
  	if err != nil {
  		return false, err
  	}
  	return bytes.Equal(patch, history.Data.Raw), nil
  }
docs: // daemonMatch check if the given DaemonSet's template matches the template stored in the given history.