fix(pending-actions): correctly detect unreachable/down cluster [EE-7049] (#11809)

This commit is contained in:
Matt Hook
2024-05-16 09:03:10 +12:00
committed by GitHub
parent 42d9dfba36
commit 00ab9e949a
3 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
package cli
import "k8s.io/apimachinery/pkg/version"
func (kcl *KubeClient) ServerVersion() (*version.Info, error) {
return kcl.cli.Discovery().ServerVersion()
}