Skip to content

Commit 1079d0a

Browse files
authored
allow scale to zero (#265)
1 parent 1f4a354 commit 1079d0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/v1alpha1/githubactionrunner_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type GithubActionRunnerSpec struct {
1919
Repository string `json:"repository,omitempty"`
2020

2121
// 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.
22-
// +kubebuilder:validation:Minimum=1
22+
// +kubebuilder:validation:Minimum=0
2323
// +kubebuilder:validation:Required
2424
// +kubebuilder:default=1
2525
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Minimum Pool Size",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:podCount"}

config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ spec:
5959
description: Minimum pool-size. Note that you need one runner in order
6060
for jobs to be schedulable, else they fail claiming no runners match
6161
the selector labels.
62-
minimum: 1
62+
minimum: 0
6363
type: integer
6464
minTtl:
6565
default: 0m

0 commit comments

Comments
 (0)