Skip to content

Commit

Permalink
fix: identify vmware tanzu.
Browse files Browse the repository at this point in the history
  • Loading branch information
beneiltis committed Apr 23, 2024
1 parent 3631b4b commit da10f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da10f5f

Please sign in to comment.