From 3b9fbe9564ec8ab49e148c582890cfe36eeef810 Mon Sep 17 00:00:00 2001 From: Muhammad Adil Ghaffar Date: Fri, 24 Jan 2025 11:54:48 +0200 Subject: [PATCH] More precise logs to understand failure Signed-off-by: Muhammad Adil Ghaffar --- api/v1beta1/metal3cluster_webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1beta1/metal3cluster_webhook.go b/api/v1beta1/metal3cluster_webhook.go index 8074b6a3b..640d726e3 100644 --- a/api/v1beta1/metal3cluster_webhook.go +++ b/api/v1beta1/metal3cluster_webhook.go @@ -96,7 +96,7 @@ func (c *Metal3Cluster) validate(oldM3C *Metal3Cluster) error { field.Invalid( field.NewPath("spec", "cloudProviderEnabled"), c.Spec.CloudProviderEnabled, - "cloudProviderEnabled conflicts the value of noCloudProvider", + "ValidateUpdate failed, cloudProviderEnabled conflicts the value of noCloudProvider", ), ) } @@ -110,7 +110,7 @@ func (c *Metal3Cluster) validate(oldM3C *Metal3Cluster) error { field.Invalid( field.NewPath("spec", "noCloudProvider"), c.Spec.NoCloudProvider, - "noCloudProvider conflicts the value of cloudProviderEnabled", + "ValidateUpdate failed, noCloudProvider conflicts the value of cloudProviderEnabled", ), ) }