diff --git a/api/v1/inferencepool_types.go b/api/v1/inferencepool_types.go index 7f76b03d8..d2bcd9867 100644 --- a/api/v1/inferencepool_types.go +++ b/api/v1/inferencepool_types.go @@ -71,8 +71,7 @@ type InferencePoolSpec struct { // Currently, the list may only include a single port definition. // +kubebuilder:validation:MinItems=1 // +kubebuilder:validation:MaxItems=1 - // +listType=map - // +listMapKey=number + // +listType=atomic // +required TargetPorts []Port `json:"targetPorts,omitempty"` diff --git a/config/crd/bases/inference.networking.k8s.io_inferencepools.yaml b/config/crd/bases/inference.networking.k8s.io_inferencepools.yaml index 92072eb57..25e0a4d3f 100644 --- a/config/crd/bases/inference.networking.k8s.io_inferencepools.yaml +++ b/config/crd/bases/inference.networking.k8s.io_inferencepools.yaml @@ -156,9 +156,7 @@ spec: maxItems: 1 minItems: 1 type: array - x-kubernetes-list-map-keys: - - number - x-kubernetes-list-type: map + x-kubernetes-list-type: atomic required: - extensionRef - selector