From 61a7b81346d16932a8e2988a74c5b822935d2c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Fievet?= Date: Mon, 26 Jan 2026 16:20:35 +0100 Subject: [PATCH 1/2] chore(nodepool|instancepool): allow downsizing to 0 --- cmd/compute/instance_pool/instance_pool_scale.go | 4 ++-- cmd/compute/sks/sks_nodepool_scale.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/compute/instance_pool/instance_pool_scale.go b/cmd/compute/instance_pool/instance_pool_scale.go index 1f84bf852..f235a2a48 100644 --- a/cmd/compute/instance_pool/instance_pool_scale.go +++ b/cmd/compute/instance_pool/instance_pool_scale.go @@ -44,8 +44,8 @@ func (c *instancePoolScaleCmd) CmdPreRun(cmd *cobra.Command, args []string) erro } func (c *instancePoolScaleCmd) CmdRun(_ *cobra.Command, _ []string) error { - if c.Size <= 0 { - return errors.New("minimum Instance Pool size is 1") + if c.Size < 0 { + return errors.New("minimum Instance Pool size is 0") } ctx := exocmd.GContext diff --git a/cmd/compute/sks/sks_nodepool_scale.go b/cmd/compute/sks/sks_nodepool_scale.go index ac6825fef..d151bd258 100644 --- a/cmd/compute/sks/sks_nodepool_scale.go +++ b/cmd/compute/sks/sks_nodepool_scale.go @@ -50,8 +50,8 @@ func (c *sksNodepoolScaleCmd) CmdPreRun(cmd *cobra.Command, args []string) error } func (c *sksNodepoolScaleCmd) CmdRun(_ *cobra.Command, _ []string) error { - if c.Size <= 0 { - return errors.New("minimum Nodepool size is 1") + if c.Size < 0 { + return errors.New("minimum Nodepool size is 0") } ctx := exocmd.GContext From 37156932df3fd380459f47d0f0126919668b7541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Fievet?= Date: Mon, 26 Jan 2026 17:34:04 +0100 Subject: [PATCH 2/2] chore(changelog): add unreleased section with the changes --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0012cbe9..e3e78e766 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Bug fixes + +- Allow downscaling InstancePool and NodePool to 0 + ## 1.90.1 ### Bug fixes