Skip to content

Commit fb62223

Browse files
committed
fixup! feat: Nutanix VM image preflight check
Allow imageLookup with warning
1 parent f0cb9f8 commit fb62223

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pkg/webhook/preflight/nutanix/image.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ func (n *nutanixChecker) vmImageCheck(
7373
}
7474

7575
if machineDetails.ImageLookup != nil {
76-
result.Allowed = false
77-
result.Error = true
78-
result.Causes = append(result.Causes, preflight.Cause{
79-
Message: "ImageLookup is not yet supported",
80-
Field: field,
81-
})
76+
result.Allowed = true
77+
result.Warnings = append(
78+
result.Warnings,
79+
fmt.Sprintf("%s uses imageLookup, which is not yet supported by checks", field),
80+
)
8281
return result
8382
}
8483

0 commit comments

Comments
 (0)