Skip to content

Commit

Permalink
MinTtl should be optional. Fixes #226
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Apr 6, 2021
1 parent 3bab8a5 commit 981dea3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions api/v1alpha1/githubactionrunner_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type GithubActionRunnerSpec struct {
MaxRunners int `json:"maxRunners"`

// Minimum time to live for a runner. This can avoid trashing by keeping pods around longer than required by jobs, keeping caches hot.
// +kubebuilder:validation:Optional
// +kubebuilder:default="0m"
// +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Minimum time to live"
MinTTL metav1.Duration `json:"minTtl"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3826,7 +3826,6 @@ spec:
required:
- maxRunners
- minRunners
- minTtl
- organization
- podTemplateSpec
type: object
Expand Down

0 comments on commit 981dea3

Please sign in to comment.