As noted in the review of PR #1506, GCPMachinePool currently lacks comprehensive validation for its spec fields.
We need to implement ValidateCreate and ValidateUpdate webhooks to enforce field constraints (e.g., ensuring required fields are present, validating enums).
Where possible, we should share logic with the existing GCPMachine validation.
Relevant discussion: #1506 (comment)
As noted in the review of PR #1506,
GCPMachinePoolcurrently lacks comprehensive validation for its spec fields.We need to implement
ValidateCreateandValidateUpdatewebhooks to enforce field constraints (e.g., ensuring required fields are present, validating enums).Where possible, we should share logic with the existing
GCPMachinevalidation.Relevant discussion: #1506 (comment)