Skip to content

Commit 835d149

Browse files
author
Cecile Robert-Michon
committed
🐛 fix: allow nil image in AzureMachine webhook validation
1 parent db93854 commit 835d149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1alpha3/azureimage_validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func ValidateImage(image *Image, fldPath *field.Path) field.ErrorList {
2525
allErrs := field.ErrorList{}
2626

2727
if image == nil {
28-
allErrs = append(allErrs, field.Required(fldPath, "an image must be specified"))
28+
// allow empty image as it is defaulted in the AzureMachine controller
2929
return allErrs
3030
}
3131

0 commit comments

Comments
 (0)