Skip to content
Open
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions pkg/apis/trainer/v1alpha1/trainjob_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ type Initializer struct {
// which contains this label: `trainer.kubeflow.org/trainjob-ancestor-step: dataset-initializer`
type DatasetInitializer struct {
// storageUri is the URI for the dataset provider.
// Should be a valid URI format (e.g., s3://bucket/path, gs://bucket/path, /local/path)
// +kubebuilder:validation:Pattern=`^[a-zA-Z0-9+\-]+://.+|^/.*$`
// +optional
StorageUri *string `json:"storageUri,omitempty"`

Expand Down Expand Up @@ -291,6 +293,7 @@ type PodTemplateOverride struct {
type PodTemplateOverrideTargetJob struct {
// name is the target training job name for which the PodTemplateSpec is overridden.
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:Pattern=`^[a-z0-9]([-a-z0-9]*[a-z0-9])?$`
// +required
Name string `json:"name,omitempty"`
}
Expand Down
Loading