Skip to content

Commit

Permalink
fix: add volume name
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Dec 13, 2024
1 parent 9d18068 commit df33274
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/testworkflows/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ type TestWorkflowPvcConfig struct {
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"`
// 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
Selector *metav1.LabelSelector `json:"selector,omitempty" expr:"include"`
}
15 changes: 15 additions & 0 deletions config/crd/bases/testworkflows.testkube.io_testworkflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2778,6 +2778,9 @@ spec:
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
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down Expand Up @@ -4084,6 +4087,9 @@ spec:
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
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down Expand Up @@ -4815,6 +4821,9 @@ spec:
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
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down Expand Up @@ -7848,6 +7857,9 @@ spec:
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
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down Expand Up @@ -10936,6 +10948,9 @@ spec:
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
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2769,6 +2769,9 @@ spec:
of the volume as either a filesystem or block
device. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#volume-mode'
type: string
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down Expand Up @@ -4018,6 +4021,9 @@ spec:
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
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down Expand Up @@ -4757,6 +4763,9 @@ spec:
of the volume as either a filesystem or block
device. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#volume-mode'
type: string
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down Expand Up @@ -7761,6 +7770,9 @@ spec:
of the volume as either a filesystem or block
device. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#volume-mode'
type: string
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down Expand Up @@ -10783,6 +10795,9 @@ spec:
of the volume as either a filesystem or block
device. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#volume-mode'
type: string
volumeName:
description: 'Volume name is used to identify the volume'
type: string
type: object
description: list of accompanying permanent volume claims
type: object
Expand Down

0 comments on commit df33274

Please sign in to comment.