Skip to content

Commit

Permalink
add defaults to crd. fixes #69 (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen authored Dec 20, 2020
1 parent f61b672 commit 975b0e1
Show file tree
Hide file tree
Showing 2 changed files with 468 additions and 94 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/githubactionrunner_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type GithubActionRunnerSpec struct {
// 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:Required
// +kubebuilder:default=1
MinRunners int `json:"minRunners"`

// Maximum pool-size.
Expand All @@ -36,6 +37,7 @@ type GithubActionRunnerSpec struct {

// How often to reconcile/check the runner pool. If undefined the controller uses a default of 1m
// +kubebuilder:validation:Optional
// +kubebuilder:default="1m"
ReconciliationPeriod string `json:"reconciliationPeriod"`

// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
Expand Down
Loading

0 comments on commit 975b0e1

Please sign in to comment.