@@ -64,6 +64,13 @@ type TobikoSpec struct {
6464 // String including any options to pass to pytest when it runs tobiko tests
6565 PytestAddopts string `json:"pytestAddopts"`
6666
67+ // +kubebuilder:validation:Optional
68+ // +listType=atomic
69+ // +operator-sdk:csv:customresourcedefinitions:type=spec
70+ // List of test name patterns to skip. It has the same functionality
71+ // as the --skipregex parameter used in PytestAddopts.
72+ SkipRegexList []string `json:"skipRegexList,omitempty"`
73+
6774 // +kubebuilder:validation:Optional
6875 // +operator-sdk:csv:customresourcedefinitions:type=spec
6976 // +kubebuilder:default:=false
@@ -151,6 +158,13 @@ type TobikoWorkflowSpec struct {
151158 // String including any options to pass to pytest when it runs tobiko tests
152159 PytestAddopts string `json:"pytestAddopts,omitempty"`
153160
161+ // +kubebuilder:validation:Optional
162+ // +listType=atomic
163+ // +operator-sdk:csv:customresourcedefinitions:type=spec
164+ // List of test name patterns to skip. It has the same functionality
165+ // as the --skipregex parameter used in PytestAddopts.
166+ SkipRegexList []string `json:"skipRegexList,omitempty"`
167+
154168 // +kubebuilder:validation:Optional
155169 // +operator-sdk:csv:customresourcedefinitions:type=spec
156170 // Boolean specifying whether tobiko tests create new resources or re-use those previously created
0 commit comments