Skip to content

Commit

Permalink
feat: selector for test workflow execute
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Nov 11, 2024
1 parent 2a57f6e commit 61ba79e
Show file tree
Hide file tree
Showing 4 changed files with 514 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/testworkflows/v1/step_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package v1

import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"

testsv3 "github.com/kubeshop/testkube-operator/api/tests/v3"
Expand Down Expand Up @@ -213,6 +214,9 @@ type StepExecuteWorkflow struct {

// configuration to pass for the workflow
Config map[string]intstr.IntOrString `json:"config,omitempty" expr:"template"`

// selector is used to identify a group of test workflows based on their metadata labels
Selector *metav1.LabelSelector `json:"selector,omitempty"`
}

type StepParallel struct {
Expand Down
6 changes: 6 additions & 0 deletions api/testworkflows/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 61ba79e

Please sign in to comment.