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