From 6c496434699aefaa56f889fc1928681f3351256f Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Tue, 17 Oct 2023 15:34:26 -0400 Subject: [PATCH] trim v prefixes from k8s versions --- pkg/agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go index f53d0bec..dce5b48f 100644 --- a/pkg/agent/agent.go +++ b/pkg/agent/agent.go @@ -94,7 +94,7 @@ func (agent *Agent) Run() { return false, nil } vs := strings.Split(info.GitVersion, "-") - if err := agent.consoleClient.Ping(vs[0]); err != nil { + if err := agent.consoleClient.Ping(strings.TrimPrefix(vs[0], "v")); err != nil { log.Error(err, "failed to ping cluster after scheduling syncs") } return false, nil