Skip to content

Commit 981dea3

Browse files
committed
MinTtl should be optional. Fixes #226
1 parent 3bab8a5 commit 981dea3

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

api/v1alpha1/githubactionrunner_types.go

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type GithubActionRunnerSpec struct {
3232
MaxRunners int `json:"maxRunners"`
3333

3434
// Minimum time to live for a runner. This can avoid trashing by keeping pods around longer than required by jobs, keeping caches hot.
35+
// +kubebuilder:validation:Optional
3536
// +kubebuilder:default="0m"
3637
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Minimum time to live"
3738
MinTTL metav1.Duration `json:"minTtl"`

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

-1
Original file line numberDiff line numberDiff line change
@@ -3826,7 +3826,6 @@ spec:
38263826
required:
38273827
- maxRunners
38283828
- minRunners
3829-
- minTtl
38303829
- organization
38313830
- podTemplateSpec
38323831
type: object

0 commit comments

Comments
 (0)