From da10f5f9216296df8d5f3cb5291543694e75263d Mon Sep 17 00:00:00 2001 From: Benedikt Iltisberger Date: Tue, 23 Apr 2024 09:41:20 +0200 Subject: [PATCH] fix: identify vmware tanzu. --- kubernetes/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/utils.go b/kubernetes/utils.go index c6a2483..b30f456 100644 --- a/kubernetes/utils.go +++ b/kubernetes/utils.go @@ -681,7 +681,7 @@ func GuessCluserProviderFromNodeList(nodes *v1.NodeList) (dtos.KubernetesProvide return dtos.ACK, nil } else if LabelsContain(labelsAndAnnotations, "node-role.kubernetes.io/master") && LabelsContain(labelsAndAnnotations, "node.openshift.io/os_id") { return dtos.OPEN_SHIFT, nil - } else if LabelsContain(labelsAndAnnotations, "vmware-system-vmware.io/role") { + } else if LabelsContain(labelsAndAnnotations, "vmware-system-vmware.io/role") || ImagesContain(node.Status.Images, "vmware.com/tkg/kube-apiserver") { return dtos.VMWARE, nil } else if LabelsContain(labelsAndAnnotations, "io.rancher.os/hostname") { return dtos.RKE, nil