| ... | ... |
@@ -665,7 +665,7 @@ func validateRuntimeImage(sourceStrategy *buildapi.SourceBuildStrategy, fldPath |
| 665 | 665 |
return append(allErrs, field.Required(fldPath, "name")) |
| 666 | 666 |
} |
| 667 | 667 |
|
| 668 |
- if sourceStrategy.Incremental {
|
|
| 668 |
+ if sourceStrategy.Incremental != nil && *sourceStrategy.Incremental {
|
|
| 669 | 669 |
return append(allErrs, field.Invalid(fldPath, sourceStrategy.Incremental, "incremental cannot be set to true with extended builds")) |
| 670 | 670 |
} |
| 671 | 671 |
return |