Skip to content

Commit

Permalink
allow scale to zero (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen authored Jun 14, 2021
1 parent 1f4a354 commit 1079d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/githubactionrunner_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1079d0a

Please sign in to comment.