From 95c8992e9905b54935098673814ba1d88556a086 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Fri, 13 Dec 2024 17:14:07 +0300 Subject: [PATCH] fix: move fields to boxed strings Signed-off-by: Vladislav Sukhin --- api/v1/testkube.yaml | 4 ++-- pkg/api/v1/testkube/model_test_workflow_pvc_config.go | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/api/v1/testkube.yaml b/api/v1/testkube.yaml index 60336c86c1..065638042c 100644 --- a/api/v1/testkube.yaml +++ b/api/v1/testkube.yaml @@ -10611,13 +10611,13 @@ components: volumeMode: description: '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' - type: string + $ref: "#/components/schemas/BoxedString" resources: description: 'Resources required for pvc' $ref: "#/components/schemas/TestWorkflowResources" storageClassName: description: 'Storage class name specifies the name of a StorageClass. More info: https://kubernetes.io/docs/concepts/storage/storage-classes/' - type: string + $ref: "#/components/schemas/BoxedString" volumeName: description: 'Volume name is used to identify the volume' type: string diff --git a/pkg/api/v1/testkube/model_test_workflow_pvc_config.go b/pkg/api/v1/testkube/model_test_workflow_pvc_config.go index 77cacf8f69..02b3f00cdb 100644 --- a/pkg/api/v1/testkube/model_test_workflow_pvc_config.go +++ b/pkg/api/v1/testkube/model_test_workflow_pvc_config.go @@ -11,12 +11,10 @@ package testkube 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"` - // 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"` - Resources *TestWorkflowResources `json:"resources,omitempty"` - // Storage class name specifies the name of a StorageClass. More info: https://kubernetes.io/docs/concepts/storage/storage-classes/ - StorageClassName string `json:"storageClassName,omitempty"` + AccessModes []string `json:"accessModes,omitempty"` + VolumeMode *BoxedString `json:"volumeMode,omitempty"` + Resources *TestWorkflowResources `json:"resources,omitempty"` + StorageClassName *BoxedString `json:"storageClassName,omitempty"` // Volume name is used to identify the volume VolumeName string `json:"volumeName,omitempty"` Selector *LabelSelector `json:"selector,omitempty"`