Skip to content

Commit 86b852d

Browse files
committed
weight feedback changes
1 parent 613fd37 commit 86b852d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

api/inferencemodel_types.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,12 @@ type TargetModel struct {
162162
//
163163
// If only one model is specified and it has a weight greater than 0, 100%
164164
// of the traffic is forwarded to that model. If weight is set to 0, no
165-
// traffic should be forwarded for this model. If unspecified, weight
166-
// defaults to 1.
165+
// traffic should be forwarded for this model.
167166
//
168167
// +optional
169-
// +kubebuilder:default=1
170168
// +kubebuilder:validation:Minimum=0
171169
// +kubebuilder:validation:Maximum=1000000
172-
Weight int32 `json:"weight,omitempty"`
170+
Weight *int32 `json:"weight,omitempty"`
173171
}
174172

175173
// InferenceModelStatus defines the observed state of InferenceModel

0 commit comments

Comments
 (0)