if (
    scan.spec.volumeMounts !== undefined &&
    cascadedRuleUsedForParentScan.spec.scanSpec.volumeMounts !== undefined
  ) {
    scan.spec.volumeMounts = scan.spec.volumeMounts.filter(