Skip to content

Commit

Permalink
fix: add pvcs to service spec
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <vladislav@kubeshop.io>
  • Loading branch information
vsukhin committed Dec 12, 2024
1 parent d9fcff8 commit bd2cf57
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8678,6 +8678,10 @@ components:
type: string
readinessProbe:
$ref: "#/components/schemas/Probe"
pvcs:
type: object
additionalProperties:
$ref: "#/components/schemas/TestWorkflowPvcConfig"

TestWorkflowServiceSpec:
type: object
Expand Down Expand Up @@ -10599,9 +10603,6 @@ components:
TestWorkflowPvcConfig:
type: object
properties:
shared:
description: Specify whether the pvc should be shared between test workflow pods
type: boolean
accessModes:
description: 'Access mode for claim storage. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes'
type: array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@ type TestWorkflowIndependentServiceSpec struct {
// matrix of parameters to spawn instances
Matrix map[string]interface{} `json:"matrix,omitempty"`
// parameters that should be distributed across sharded instances
Shards map[string]interface{} `json:"shards,omitempty"`
Shards map[string]interface{} `json:"shards,omitempty"`
Pvcs map[string]TestWorkflowPvcConfig `json:"pvcs,omitempty"`
}
2 changes: 0 additions & 2 deletions pkg/api/v1/testkube/model_test_workflow_pvc_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
package testkube

type TestWorkflowPvcConfig struct {
// Specify whether the pvc should be shared between test workflow pods
Shared bool `json:"shared,omitempty"`
// 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
Expand Down
3 changes: 2 additions & 1 deletion pkg/api/v1/testkube/model_test_workflow_service_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ type TestWorkflowServiceSpec struct {
// matrix of parameters to spawn instances
Matrix map[string]interface{} `json:"matrix,omitempty"`
// parameters that should be distributed across sharded instances
Shards map[string]interface{} `json:"shards,omitempty"`
Shards map[string]interface{} `json:"shards,omitempty"`
Pvcs map[string]TestWorkflowPvcConfig `json:"pvcs,omitempty"`
}

0 comments on commit bd2cf57

Please sign in to comment.