From 4367ed0382ed5318d07ac3877def28a1f19e6937 Mon Sep 17 00:00:00 2001 From: Jakob Naucke Date: Thu, 10 Sep 2026 15:03:38 +0200 Subject: [PATCH] Fix validation pattern for machine/vsphereprovider kubebuilder validation pattern for the tagIDs field in the vSphere machine provider spec is specified as if it was a string, but it should specify for an array. Fixes: #2978 Signed-off-by: Jakob Naucke --- machine/v1beta1/types_vsphereprovider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machine/v1beta1/types_vsphereprovider.go b/machine/v1beta1/types_vsphereprovider.go index 6ffe1e829d8..c3ea07f9ddc 100644 --- a/machine/v1beta1/types_vsphereprovider.go +++ b/machine/v1beta1/types_vsphereprovider.go @@ -53,7 +53,7 @@ type VSphereMachineProviderSpec struct { DiskGiB int32 `json:"diskGiB,omitempty"` // tagIDs is an optional set of tags to add to an instance. Specified tagIDs // must use URN-notation instead of display names. A maximum of 10 tag IDs may be specified. - // +kubebuilder:validation:Pattern="^(urn):(vmomi):(InventoryServiceTag):([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}):([^:]+)$" + // +kubebuilder:validation:items:Pattern="^(urn):(vmomi):(InventoryServiceTag):([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}):([^:]+)$" // +kubebuilder:example="urn:vmomi:InventoryServiceTag:5736bf56-49f5-4667-b38c-b97e09dc9578:GLOBAL" // +optional TagIDs []string `json:"tagIDs,omitempty"`