From d75018323bd25c4ee21daa2c51e64544fc5ed859 Mon Sep 17 00:00:00 2001 From: Danqing Hou Date: Thu, 21 Aug 2025 11:37:12 +0800 Subject: [PATCH] Update InterfaceSpec MTU minimum value Update the value from 68 to 576 68 bytes is the minimum size of IPv4 datagram every device must be able to forward without further fragmentation. 576 bytes is the minimum size of IPv4 datagram every device has to be able to receive. --- apis/vmware/v1beta1/vspheremachine_types.go | 2 +- ...mware.infrastructure.cluster.x-k8s.io_vspheremachines.yaml | 4 ++-- ...frastructure.cluster.x-k8s.io_vspheremachinetemplates.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apis/vmware/v1beta1/vspheremachine_types.go b/apis/vmware/v1beta1/vspheremachine_types.go index 4aee63affd..df16ff3db0 100644 --- a/apis/vmware/v1beta1/vspheremachine_types.go +++ b/apis/vmware/v1beta1/vspheremachine_types.go @@ -172,7 +172,7 @@ type InterfaceSpec struct { // mtu is the Maximum Transmission Unit size in bytes. // - // +kubebuilder:validation:Minimum=68 + // +kubebuilder:validation:Minimum=576 // +kubebuilder:validation:Maximum=9000 // +optional MTU int32 `json:"mtu,omitempty"` diff --git a/config/supervisor/crd/bases/vmware.infrastructure.cluster.x-k8s.io_vspheremachines.yaml b/config/supervisor/crd/bases/vmware.infrastructure.cluster.x-k8s.io_vspheremachines.yaml index f1dab6ca30..5cf223a242 100644 --- a/config/supervisor/crd/bases/vmware.infrastructure.cluster.x-k8s.io_vspheremachines.yaml +++ b/config/supervisor/crd/bases/vmware.infrastructure.cluster.x-k8s.io_vspheremachines.yaml @@ -122,7 +122,7 @@ spec: in bytes. format: int32 maximum: 9000 - minimum: 68 + minimum: 576 type: integer network: description: |- @@ -211,7 +211,7 @@ spec: in bytes. format: int32 maximum: 9000 - minimum: 68 + minimum: 576 type: integer name: description: |- diff --git a/config/supervisor/crd/bases/vmware.infrastructure.cluster.x-k8s.io_vspheremachinetemplates.yaml b/config/supervisor/crd/bases/vmware.infrastructure.cluster.x-k8s.io_vspheremachinetemplates.yaml index 3c120bddfe..cb3cf05d48 100644 --- a/config/supervisor/crd/bases/vmware.infrastructure.cluster.x-k8s.io_vspheremachinetemplates.yaml +++ b/config/supervisor/crd/bases/vmware.infrastructure.cluster.x-k8s.io_vspheremachinetemplates.yaml @@ -119,7 +119,7 @@ spec: size in bytes. format: int32 maximum: 9000 - minimum: 68 + minimum: 576 type: integer network: description: |- @@ -208,7 +208,7 @@ spec: Unit size in bytes. format: int32 maximum: 9000 - minimum: 68 + minimum: 576 type: integer name: description: |-