Skip to content

Commit 03ca5d9

Browse files
committed
updated message
1 parent 8c582e3 commit 03ca5d9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apix/v1/inferencepool_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ type Port struct {
9696

9797
// EndpointPickerRef specifies a reference to an Endpoint Picker extension and its
9898
// associated configuration.
99-
// +kubebuilder:validation:XValidation:rule="self.kind != 'Service' || has(self.port)",message="port is required when kind is 'Service'"
99+
// +kubebuilder:validation:XValidation:rule="self.kind != 'Service' || has(self.port)",message="port is required when kind is 'Service' or unspecified (defaults to 'Service')"
100100
type EndpointPickerRef struct {
101101
// Group is the group of the referent API object. When unspecified, the default value
102102
// is "", representing the Core API group.

config/crd/bases/inference.networking.k8s.io_inferencepools.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
apiVersion: apiextensions.k8s.io/v1
23
kind: CustomResourceDefinition
34
metadata:
@@ -113,7 +114,8 @@ spec:
113114
- name
114115
type: object
115116
x-kubernetes-validations:
116-
- message: port is required when kind is 'Service'
117+
- message: port is required when kind is 'Service' or unspecified
118+
(defaults to 'Service')
117119
rule: self.kind != 'Service' || has(self.port)
118120
selector:
119121
description: |-

0 commit comments

Comments
 (0)