diff --git a/api/v1alpha1/githubactionrunner_types.go b/api/v1alpha1/githubactionrunner_types.go index 1b60a240..8d30386c 100644 --- a/api/v1alpha1/githubactionrunner_types.go +++ b/api/v1alpha1/githubactionrunner_types.go @@ -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. diff --git a/config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml b/config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml index b0521899..d8d15b5e 100644 --- a/config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml +++ b/config/crd/bases/garo.tietoevry.com_githubactionrunners.yaml @@ -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