Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions pkg/apis/scorecard/v1alpha3/configuration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ type Configuration struct {

// Stages is a set of test stages to run. Once a stage is finished, the next stage in the slice will be run.
Stages []StageConfiguration `json:"stages" yaml:"stages"`

// Storage is the optional storage configuration
Storage Storage `json:"storage,omitempty" yaml:"storage,omitempty"`
}

// StageConfiguration configures a set of tests to be run.
Expand All @@ -40,4 +43,24 @@ type TestConfiguration struct {
Entrypoint []string `json:"entrypoint,omitempty" yaml:"entrypoint,omitempty"`
// Labels further describe the test and enable selection.
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
// Storage is the optional storage configuration for the test image.
Storage Storage `json:"storage,omitempty" yaml:"storage,omitempty"`
}

// Storage configures custom storage options
type Storage struct {
// Spec contains the storage configuration options
Spec StorageSpec `json:"spec" yaml:"spec"`
}

// StorageSpec contains storage configuration options
type StorageSpec struct {
// MountPath configures the path to mount directories in the test pod
MountPath MountPath `json:"mountPath,omitempty" yaml:"mountPath,omitempty"`
}

// MountPath configures the path to mount directories in the test pod
type MountPath struct {
// Path is the fully qualified path that a directory should be mounted in the test pod
Path string `json:"path,omitempty" yaml:"path,omitempty"`
}
49 changes: 49 additions & 0 deletions pkg/apis/scorecard/v1alpha3/zz_generated.deepcopy.go

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