From a8f253088c770fa846f827e65b8733525b206000 Mon Sep 17 00:00:00 2001 From: Kyle Anderson Date: Thu, 25 Aug 2022 19:39:11 -0700 Subject: [PATCH] Removed deprecated node Clustername With this one line, vk fails to build against k8s 1.24 libs. The comment says: // Deprecated: ClusterName is a legacy field that was always cleared by // the system and never used; it will be removed completely in 1.25. Seems to be removed in 1.24 though. --- node/node.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/node/node.go b/node/node.go index 232601d7b..991fc1817 100644 --- a/node/node.go +++ b/node/node.go @@ -685,10 +685,9 @@ func (t taintsStringer) String() string { func addNodeAttributes(ctx context.Context, span trace.Span, n *corev1.Node) context.Context { return span.WithFields(ctx, log.Fields{ - "node.UID": string(n.UID), - "node.name": n.Name, - "node.cluster": n.ClusterName, - "node.taints": taintsStringer(n.Spec.Taints), + "node.UID": string(n.UID), + "node.name": n.Name, + "node.taints": taintsStringer(n.Spec.Taints), }) }