Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.
Open
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
9 changes: 9 additions & 0 deletions pkg/apis/common/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,17 @@ type ReplicaStatus struct {
type ReplicaSpec struct {
// Replicas is the desired number of replicas of the given template.
// If unspecified, defaults to 1.
// +optional
Replicas *int32 `json:"replicas,omitempty"`

// minReplicas is the lower limit for the number of replicas to which the training job
// can scale down. It defaults to nil.
// +optional
MinReplicas *int32 `json:"minReplicas,omitempty"`
// upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas, defaults to nil.
// +optional
MaxReplicas *int32 `json:"maxReplicas,omitempty"`

// Template is the object that describes the pod that
// will be created for this replica. RestartPolicy in PodTemplateSpec
// will be overide by RestartPolicy in ReplicaSpec
Expand Down
10 changes: 10 additions & 0 deletions pkg/apis/common/v1/zz_generated.deepcopy.go

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