From 1079d0a5209bfdfb493951c5ae9d18a83ba1970e Mon Sep 17 00:00:00 2001 From: "David J. M. Karlsen" Date: Mon, 14 Jun 2021 13:14:05 +0200 Subject: [PATCH] allow scale to zero (#265) --- api/v1alpha1/githubactionrunner_types.go | 2 +- config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1alpha1/githubactionrunner_types.go b/api/v1alpha1/githubactionrunner_types.go index 1d4a98d4..51fff7d1 100644 --- a/api/v1alpha1/githubactionrunner_types.go +++ b/api/v1alpha1/githubactionrunner_types.go @@ -19,7 +19,7 @@ type GithubActionRunnerSpec struct { Repository string `json:"repository,omitempty"` // Minimum pool-size. Note that you need one runner in order for jobs to be schedulable, else they fail claiming no runners match the selector labels. - // +kubebuilder:validation:Minimum=1 + // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Required // +kubebuilder:default=1 // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Minimum Pool Size",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:podCount"} diff --git a/config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml b/config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml index cbe77d8d..a1a41304 100644 --- a/config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml +++ b/config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml @@ -59,7 +59,7 @@ spec: description: Minimum pool-size. Note that you need one runner in order for jobs to be schedulable, else they fail claiming no runners match the selector labels. - minimum: 1 + minimum: 0 type: integer minTtl: default: 0m