From 628e7d650031aac2275de2f09d5fc49424d07b52 Mon Sep 17 00:00:00 2001 From: "Daniel J. Holmes (jaitaiwan)" Date: Fri, 13 Jun 2025 16:34:47 +1000 Subject: [PATCH] chore: clearer error message Error now clearly indicates the reasoning for the error message. Previously the error message suggested a kubelet flag was not set even when it may have been. Signed-off-by: Daniel J. Holmes (jaitaiwan) --- pkg/proxmox/instances.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/proxmox/instances.go b/pkg/proxmox/instances.go index 258db55..2c2b00d 100644 --- a/pkg/proxmox/instances.go +++ b/pkg/proxmox/instances.go @@ -198,7 +198,10 @@ func (i *instances) InstanceMetadata(ctx context.Context, node *v1.Node) (*cloud }, nil } - klog.InfoS("instances.InstanceMetadata() is kubelet has args: --cloud-provider=external on the node?", node, klog.KRef("", node.Name)) + klog.InfoS(fmt.Sprintf( + "instances.InstanceMetadata() called: label %s missing from node. Was kubelet started without --cloud-provider=external?", + cloudproviderapi.AnnotationAlphaProvidedIPAddr), + node, klog.KRef("", node.Name)) return &cloudprovider.InstanceMetadata{}, nil }