diff --git a/cmd/scw/testdata/test-all-usage-k8s-cluster-create-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-k8s-cluster-create-usage.stderr.golden index 74814d4017..d324dcaeff 100644 --- a/cmd/scw/testdata/test-all-usage-k8s-cluster-create-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-k8s-cluster-create-usage.stderr.golden @@ -35,6 +35,7 @@ ARGS: [autoscaler-config.ignore-daemonsets-utilization] Ignore DaemonSet pods when calculating resource utilization for scaling down [autoscaler-config.balance-similar-node-groups] Detect similar node groups and balance the number of nodes between them [autoscaler-config.expendable-pods-priority-cutoff] Pods with priority below cutoff will be expendable + [autoscaler-config.scale-down-unneeded-time] How long a node should be unneeded before it is eligible for scale down [auto-upgrade.enable] Whether or not auto upgrade is enabled for the cluster [auto-upgrade.maintenance-window.start-hour] The start hour of the 2-hour maintenance window [auto-upgrade.maintenance-window.day] The day of the week for the maintenance window (any | monday | tuesday | wednesday | thursday | friday | saturday | sunday) diff --git a/cmd/scw/testdata/test-all-usage-k8s-cluster-update-usage.stderr.golden b/cmd/scw/testdata/test-all-usage-k8s-cluster-update-usage.stderr.golden index 8c5d48317c..1bf6d24a19 100644 --- a/cmd/scw/testdata/test-all-usage-k8s-cluster-update-usage.stderr.golden +++ b/cmd/scw/testdata/test-all-usage-k8s-cluster-update-usage.stderr.golden @@ -22,6 +22,7 @@ ARGS: [autoscaler-config.ignore-daemonsets-utilization] Ignore DaemonSet pods when calculating resource utilization for scaling down [autoscaler-config.balance-similar-node-groups] Detect similar node groups and balance the number of nodes between them [autoscaler-config.expendable-pods-priority-cutoff] Pods with priority below cutoff will be expendable + [autoscaler-config.scale-down-unneeded-time] How long a node should be unneeded before it is eligible for scale down [enable-dashboard] The new value of the Kubernetes Dashboard enablement [ingress] The new Ingress Controller for the cluster (unknown_ingress | none | nginx | traefik) [auto-upgrade.enable] Whether or not auto upgrade is enabled for the cluster diff --git a/internal/namespaces/k8s/v1/k8s_cli.go b/internal/namespaces/k8s/v1/k8s_cli.go index af3e764b13..5054057152 100644 --- a/internal/namespaces/k8s/v1/k8s_cli.go +++ b/internal/namespaces/k8s/v1/k8s_cli.go @@ -365,6 +365,12 @@ func k8sClusterCreate() *core.Command { Required: false, Positional: false, }, + { + Name: "autoscaler-config.scale-down-unneeded-time", + Short: `How long a node should be unneeded before it is eligible for scale down`, + Required: false, + Positional: false, + }, { Name: "auto-upgrade.enable", Short: `Whether or not auto upgrade is enabled for the cluster`, @@ -531,6 +537,12 @@ func k8sClusterUpdate() *core.Command { Required: false, Positional: false, }, + { + Name: "autoscaler-config.scale-down-unneeded-time", + Short: `How long a node should be unneeded before it is eligible for scale down`, + Required: false, + Positional: false, + }, { Name: "enable-dashboard", Short: `The new value of the Kubernetes Dashboard enablement`,