From 2ab3824425d632796827b2c72ca3a590db2878a2 Mon Sep 17 00:00:00 2001
From: Vladislav Sukhin <vladislav@kubeshop.io>
Date: Wed, 11 Dec 2024 18:03:23 +0300
Subject: [PATCH] fix: test workflow template

Signed-off-by: Vladislav Sukhin <vladislav@kubeshop.io>
---
 ...ows.testkube.io_testworkflowtemplates.yaml | 108 +++++++++++++-----
 1 file changed, 81 insertions(+), 27 deletions(-)

diff --git a/charts/testkube-operator/templates/testworkflows.testkube.io_testworkflowtemplates.yaml b/charts/testkube-operator/templates/testworkflows.testkube.io_testworkflowtemplates.yaml
index b69d2b6f7..6eaf04aa5 100644
--- a/charts/testkube-operator/templates/testworkflows.testkube.io_testworkflowtemplates.yaml
+++ b/charts/testkube-operator/templates/testworkflows.testkube.io_testworkflowtemplates.yaml
@@ -3856,34 +3856,88 @@ spec:
                     volumes:
                       x-kubernetes-preserve-unknown-fields: true
                   type: object
-              pvcs:
-                additionalProperties:
-                  properties:
-                    accessModes:
-                      description: 'Access mode for claim storage. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes'
-                      items:
+                pvcs:
+                  additionalProperties:
+                    properties:
+                      accessModes:
+                        description: 'Access mode for claim storage. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes'
+                        items:
+                          type: string
+                        type: array
+                      resources:
+                        description: expected resources for the pvc
+                        properties:
+                          limits:
+                            additionalProperties:
+                              anyOf:
+                                - type: integer
+                                - type: string
+                              x-kubernetes-int-or-string: true
+                            description: resource limits for the container
+                            type: object
+                          requests:
+                            additionalProperties:
+                              anyOf:
+                                - type: integer
+                                - type: string
+                              x-kubernetes-int-or-string: true
+                            description: resource requests for the container
+                            type: object
+                        type: object
+                      selector:
+                        description: selector is used to identify a group of volumes based on their metadata labels
+                        properties:
+                          matchExpressions:
+                            description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
+                            items:
+                              description: |-
+                                A label selector requirement is a selector that contains values, a key, and an operator that
+                                relates the key and values.
+                              properties:
+                                key:
+                                  description: key is the label key that the selector applies to.
+                                  type: string
+                                operator:
+                                  description: |-
+                                    operator represents a key's relationship to a set of values.
+                                    Valid operators are In, NotIn, Exists and DoesNotExist.
+                                  type: string
+                                values:
+                                  description: |-
+                                    values is an array of string values. If the operator is In or NotIn,
+                                    the values array must be non-empty. If the operator is Exists or DoesNotExist,
+                                    the values array must be empty. This array is replaced during a strategic
+                                    merge patch.
+                                  items:
+                                    type: string
+                                  type: array
+                              required:
+                                - key
+                                - operator
+                              type: object
+                            type: array
+                          matchLabels:
+                            additionalProperties:
+                              type: string
+                            description: |-
+                              matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
+                              map is equivalent to an element of matchExpressions, whose key field is "key", the
+                              operator is "In", and the values array contains only "value". The requirements are ANDed.
+                            type: object
+                        type: object
+                        x-kubernetes-map-type: atomic
+                      shared:
+                        description: Specify whether the pvc should be shared between test workflow pods
+                        type: boolean
+                      storageClassName:
+                        description: 'Storage class name specifies the name of a StorageClass. More info: https://kubernetes.io/docs/concepts/storage/storage-classes/'
                         type: string
-                      type: array
-                    resources:
-                      description: expected resources for the pvc
-                      properties:
-                        limits:
-                          additionalProperties:
-                            anyOf:
-                            - type: integer
-                            - type: string
-                            x-kubernetes-int-or-string: true
-                          description: resource limits for the container
-                          type: object
-                        requests:
-                          additionalProperties:
-                            anyOf:
-                            - type: integer
-                            - type: string
-                            x-kubernetes-int-or-string: true
-                          description: resource requests for the container
-                          type: object
-                      type: object
+                      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
+                    type: object
+                  description: list of accompanying permanent volume claims
+                  type: object
                 services:
                   additionalProperties:
                     properties: