Skip to content
Closed
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
14,559 changes: 0 additions & 14,559 deletions api/openapi-spec/swagger.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ spec:
listKind: ClusterTrainingRuntimeList
plural: clustertrainingruntimes
singular: clustertrainingruntime
scope: Cluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: |-
ClusterTrainingRuntime represents a training runtime which can be referenced as part of
`runtimeRef` API in TrainJob. This resource is a cluster-scoped and can be referenced
by TrainJob that created in *any* namespace.
properties:
apiVersion:
description: |-
Expand Down Expand Up @@ -10446,6 +10442,12 @@ spec:
== ''InOrder'' && self.replicatedJobs.exists(x, has(x.dependsOn)))'
type: object
type: object
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
type: object
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
served: true
storage: true
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ spec:
- name: v1alpha1
schema:
openAPIV3Schema:
description: |-
TrainingRuntime represents a training runtime which can be referenced as part of
`runtimeRef` API in TrainJob. This resource is a namespaced-scoped and can be referenced
by TrainJob that created in the *same* namespace as the TrainingRuntime.
properties:
apiVersion:
description: |-
Expand Down Expand Up @@ -10446,6 +10442,12 @@ spec:
== ''InOrder'' && self.replicatedJobs.exists(x, has(x.dependsOn)))'
type: object
type: object
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
type: object
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
served: true
storage: true
10,385 changes: 10,385 additions & 0 deletions config/crd/bases/trainer.kubeflow.org_clustertrainingruntimes.yaml

Large diffs are not rendered by default.

10,385 changes: 10,385 additions & 0 deletions config/crd/bases/trainer.kubeflow.org_trainingruntimes.yaml

Large diffs are not rendered by default.

4,360 changes: 4,360 additions & 0 deletions config/crd/bases/trainer.kubeflow.org_trainjobs.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ spec:
listKind: ClusterTrainingRuntimeList
plural: clustertrainingruntimes
singular: clustertrainingruntime
scope: Cluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: |-
ClusterTrainingRuntime represents a training runtime which can be referenced as part of
`runtimeRef` API in TrainJob. This resource is a cluster-scoped and can be referenced
by TrainJob that created in *any* namespace.
properties:
apiVersion:
description: |-
Expand Down Expand Up @@ -10446,6 +10442,12 @@ spec:
== ''InOrder'' && self.replicatedJobs.exists(x, has(x.dependsOn)))'
type: object
type: object
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
type: object
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
served: true
storage: true
10 changes: 6 additions & 4 deletions manifests/base/crds/trainer.kubeflow.org_trainingruntimes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ spec:
- name: v1alpha1
schema:
openAPIV3Schema:
description: |-
TrainingRuntime represents a training runtime which can be referenced as part of
`runtimeRef` API in TrainJob. This resource is a namespaced-scoped and can be referenced
by TrainJob that created in the *same* namespace as the TrainingRuntime.
properties:
apiVersion:
description: |-
Expand Down Expand Up @@ -10446,6 +10442,12 @@ spec:
== ''InOrder'' && self.replicatedJobs.exists(x, has(x.dependsOn)))'
type: object
type: object
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
type: object
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
served: true
storage: true
9 changes: 9 additions & 0 deletions pkg/apis/trainer/v1alpha1/trainingruntime_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const (
// ClusterTrainingRuntime represents a training runtime which can be referenced as part of
// `runtimeRef` API in TrainJob. This resource is a cluster-scoped and can be referenced
// by TrainJob that created in *any* namespace.

// +kubebuilder:object:root=true
// +kubebuilder:validation:XValidation:rule="self == oldSelf", message="Value is immutable"
type ClusterTrainingRuntime struct {
metav1.TypeMeta `json:",inline"`

Expand Down Expand Up @@ -78,6 +81,9 @@ type ClusterTrainingRuntimeList struct {
// TrainingRuntime represents a training runtime which can be referenced as part of
// `runtimeRef` API in TrainJob. This resource is a namespaced-scoped and can be referenced
// by TrainJob that created in the *same* namespace as the TrainingRuntime.

// +kubebuilder:object:root=true
// +kubebuilder:validation:XValidation:rule="self == oldSelf", message="Value is immutable"
type TrainingRuntime struct {
metav1.TypeMeta `json:",inline"`

Expand Down Expand Up @@ -107,6 +113,9 @@ type TrainingRuntimeList struct {

// TrainingRuntimeSpec represents a specification of the desired training runtime.
// +kubebuilder:validation:MinProperties=1

// +kubebuilder:object:root=true
// +kubebuilder:validation:XValidation:rule="self == oldSelf", message="Value is immutable"
type TrainingRuntimeSpec struct {
// mlPolicy provides the ML-specific parameters for the model training.
// +optional
Expand Down
Loading