Skip to content

Commit 14763aa

Browse files
committed
added pointer usage for failure mode
1 parent 137a0b4 commit 14763aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/v1/inferencepool_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ type EndpointPickerRef struct {
130130
//
131131
// +optional
132132
// +kubebuilder:default="FailClose"
133-
FailureMode ExtensionFailureMode `json:"failureMode,omitempty"`
133+
//nolint:kubeapilinter // ignore kubeapilinter here as we want to use pointer here for optional struct.
134+
FailureMode *ExtensionFailureMode `json:"failureMode,omitempty"`
134135
}
135136

136137
// ExtensionFailureMode defines the options for how the gateway handles the case when the extension is not

0 commit comments

Comments
 (0)