Skip to content

Commit

Permalink
mark as an embedded resource
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkarlsen committed Jan 3, 2021
1 parent 1fba02d commit 7d978f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/githubactionrunner_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ type GithubActionRunnerSpec struct {
MaxRunners int `json:"maxRunners"`

// +kubebuilder:validation:Required
// +kubebuilder:validation:XEmbeddedResource
// +kubebuilder:pruning:PreserveUnknownFields
PodTemplateSpec v1.PodTemplateSpec `json:"podTemplateSpec"`

// PAT to un/register runners. Required if the operator is not running in github-application mode.
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6307,6 +6307,8 @@ spec:
- containers
type: object
type: object
x-kubernetes-embedded-resource: true
x-kubernetes-preserve-unknown-fields: true
reconciliationPeriod:
default: 1m
description: How often to reconcile/check the runner pool. If undefined
Expand Down

0 comments on commit 7d978f3

Please sign in to comment.