Skip to content

Commit 68daee3

Browse files
committed
max can be set to zero now too
1 parent 66653aa commit 68daee3

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
@@ -26,7 +26,7 @@ type GithubActionRunnerSpec struct {
2626
MinRunners int `json:"minRunners"`
2727

2828
// Maximum pool-size. Must be greater or equal to minRunners
29-
// +kubebuilder:validation:Minimum=1
29+
// +kubebuilder:validation:Minimum=0
3030
// +kubebuilder:validation:Required
3131
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Maximum Pool Size",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:podCount"}
3232
MaxRunners int `json:"maxRunners"`

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ spec:
5151
type: string
5252
maxRunners:
5353
description: Maximum pool-size. Must be greater or equal to minRunners
54-
minimum: 1
54+
minimum: 0
5555
type: integer
5656
minRunners:
5757
default: 1

0 commit comments

Comments
 (0)