From e0d37fb5899a3d9bbe8a3c63e1e3ebbd0a89df7f Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Fri, 13 Dec 2024 17:48:51 +0300 Subject: [PATCH] fix: change to *string type Signed-off-by: Vladislav Sukhin --- api/testworkflows/v1/types.go | 4 ++-- api/testworkflows/v1/zz_generated.deepcopy.go | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/api/testworkflows/v1/types.go b/api/testworkflows/v1/types.go index 3637ef91..4bd2b4ed 100644 --- a/api/testworkflows/v1/types.go +++ b/api/testworkflows/v1/types.go @@ -236,11 +236,11 @@ type TestWorkflowPvcConfig struct { // Access mode for claim storage. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes AccessModes []string `json:"accessModes,omitempty" expr:"template"` // Volume mode indicates the consumption of the volume as either a filesystem or block device. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#volume-mode - VolumeMode string `json:"volumeMode,omitempty" expr:"template"` + VolumeMode *string `json:"volumeMode,omitempty" expr:"template"` // expected resources for the pvc Resources *Resources `json:"resources,omitempty" expr:"include"` // Storage class name specifies the name of a StorageClass. More info: https://kubernetes.io/docs/concepts/storage/storage-classes/ - StorageClassName string `json:"storageClassName,omitempty" expr:"template"` + StorageClassName *string `json:"storageClassName,omitempty" expr:"template"` // volume name is used to identify the volume VolumeName string `json:"volumeName,omitempty" expr:"template"` // selector is used to identify a group of volumes based on their metadata labels diff --git a/api/testworkflows/v1/zz_generated.deepcopy.go b/api/testworkflows/v1/zz_generated.deepcopy.go index a0ec64ba..9670b55d 100644 --- a/api/testworkflows/v1/zz_generated.deepcopy.go +++ b/api/testworkflows/v1/zz_generated.deepcopy.go @@ -1630,11 +1630,21 @@ func (in *TestWorkflowPvcConfig) DeepCopyInto(out *TestWorkflowPvcConfig) { *out = make([]string, len(*in)) copy(*out, *in) } + if in.VolumeMode != nil { + in, out := &in.VolumeMode, &out.VolumeMode + *out = new(string) + **out = **in + } if in.Resources != nil { in, out := &in.Resources, &out.Resources *out = new(Resources) (*in).DeepCopyInto(*out) } + if in.StorageClassName != nil { + in, out := &in.StorageClassName, &out.StorageClassName + *out = new(string) + **out = **in + } if in.Selector != nil { in, out := &in.Selector, &out.Selector *out = new(metav1.LabelSelector)