Skip to content

Commit

Permalink
max can be set to zero now too
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Jun 5, 2022
1 parent 676fc8e commit 69864f7
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 @@ -26,7 +26,7 @@ type GithubActionRunnerSpec struct {
MinRunners int `json:"minRunners"`

// Maximum pool-size. Must be greater or equal to minRunners
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Required
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Maximum Pool Size",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:podCount"}
MaxRunners int `json:"maxRunners"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
type: string
maxRunners:
description: Maximum pool-size. Must be greater or equal to minRunners
minimum: 1
minimum: 0
type: integer
minRunners:
default: 1
Expand Down

0 comments on commit 69864f7

Please sign in to comment.