Skip to content

Commit 050477b

Browse files
authored
Merge pull request #6740 from RainbowMango/pr_add_components_to_webhookinterpreter_response
Introduce components field to webhook interpreter response
2 parents 1bf1299 + 2bc2d10 commit 050477b

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

pkg/apis/config/v1alpha1/interpretercontext_types.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,16 @@ type ResourceInterpreterResponse struct {
118118
// +optional
119119
Replicas *int32 `json:"replicas,omitempty"`
120120

121+
// Components represents the requirements of multiple pod templates of the referencing resource.
122+
// It is designed to support workloads that consist of multiple pod templates,
123+
// such as distributed training jobs (e.g., PyTorch, TensorFlow) and big data workloads (e.g., FlinkDeployment),
124+
// where each workload is composed of more than one pod template. It is also capable of representing
125+
// single-component workloads, such as Deployment.
126+
//
127+
// Required if InterpreterOperation is InterpreterOperationInterpretComponent.
128+
// +optional
129+
Components []workv1alpha2.Component `json:"components,omitempty"`
130+
121131
// Dependencies represents the reference of dependencies object.
122132
// Required if InterpreterOperation is InterpreterOperationInterpretDependency.
123133
// +optional

pkg/apis/config/v1alpha1/zz_generated.deepcopy.go

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 15 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)