From 50f8099ebba7c4ed3c197e0ff24474ebb0c99e9b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 15 Nov 2024 23:11:54 -0500 Subject: [PATCH] fix: allow autoscaling config to have zero min replicas --- plugins/scheduler-k3s/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scheduler-k3s/template.go b/plugins/scheduler-k3s/template.go index 17b5acaa5..94bb9baa8 100644 --- a/plugins/scheduler-k3s/template.go +++ b/plugins/scheduler-k3s/template.go @@ -146,7 +146,7 @@ type ProcessAutoscaling struct { MaxReplicas int `yaml:"max_replicas,omitempty"` // MinReplicas is the minimum number of replicas to scale to - MinReplicas int `yaml:"min_replicas,omitempty"` + MinReplicas int `yaml:"min_replicas"` // PollingIntervalSeconds is the number of seconds between polling for new metrics PollingIntervalSeconds int `yaml:"polling_interval_seconds,omitempty"`