code: func applyDaemonSetHistory(ds *appsv1.DaemonSet, history *appsv1.ControllerRevision) (*appsv1.DaemonSet, error) {
  	clone := ds.DeepCopy()
  	cloneBytes, err := json.Marshal(clone)
  	if err != nil {
  		return nil, err
  	}
  	patched, err := strategicpatch.StrategicMergePatch(cloneBytes, history.Data.Raw, clone)
  	if err != nil {
  		return nil, err
  	}
  	err = json.Unmarshal(patched, clone)
  	if err != nil {
  		return nil, err
  	}
  	return clone, nil
  }
docs: // applyDaemonSetHistory returns a specific revision of DaemonSet by applying the given history to a copy of the given DaemonSet