From 3f2a192440017888a2df6cf5e18e149afcad4833 Mon Sep 17 00:00:00 2001 From: yroffin Date: Tue, 17 Sep 2024 09:01:54 +0200 Subject: [PATCH] feat(runner-config): :fire: add validation Co-authored-by: Aksel Skaar Leirvaag <52233080+akselleirv@users.noreply.github.com> --- api/v1alpha2/reference_types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1alpha2/reference_types.go b/api/v1alpha2/reference_types.go index ddccdd12..aec25e90 100644 --- a/api/v1alpha2/reference_types.go +++ b/api/v1alpha2/reference_types.go @@ -163,10 +163,10 @@ type RunnerPodSpec struct { // +optional Image string `json:"image,omitempty"` - // Runner pod ImagePullPolicy to use other than default + // Runner pod ImagePullPolicy to use. Default is IfNotPresent. // +optional + // +kubebuilder:validation:Enum=Always;IfNotPresent;Never ImagePullPolicy string `json:"imagePullPolicy,omitempty"` - // List of sources to populate environment variables in the container. // The keys defined within a source must be a C_IDENTIFIER. All invalid keys // will be reported as an event when the container is starting. When a key exists in multiple