Skip to content

Commit caf6bc5

Browse files
fix: static node pool validation (#3175) (#3176)
(cherry picked from commit d9db530) Co-authored-by: Fabian Kramm <[email protected]>
1 parent be1a2c8 commit caf6bc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/config/validation.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,9 @@ func validatePrivatedNodesMode(vConfig *VirtualClusterConfig) error {
766766
if nodePool.Provider == "" {
767767
return fmt.Errorf("node pool provider is required")
768768
}
769+
if nodePool.Quantity < 0 {
770+
return fmt.Errorf("node pool quantity cannot be negative")
771+
}
769772

770773
if err := validateRequirements(nodePool.Requirements); err != nil {
771774
return fmt.Errorf("invalid requirements for node pool %s: %w", nodePool.Name, err)

0 commit comments

Comments
 (0)