EKS clusters do not have masters within the node list
@@ -43,12 +43,16 @@ func analyzeDistribution(analyzer *troubleshootv1beta1.Distribution, getCollecte
}
foundProviders := providers{}
+ foundMaster := false
for _, node := range nodes {
for k, v := range node.ObjectMeta.Labels {
if k == "microk8s.io/cluster" && v == "true" {
foundProviders.microk8s = true
}
+ if k == "node-role.kubernetes.io/master" {
+ foundMaster = true
+ }
}
if node.Status.NodeInfo.OSImage == "Docker Desktop" {
@@ -66,6 +70,11 @@ func analyzeDistribution(analyzer *troubleshootv1beta1.Distribution, getCollecte
}
}
+ if foundMaster {
+ // eks does not have masters within the node list
+ foundProviders.eks = false
+ }
+
apiResourcesBytes, err := getCollectedFileContents("cluster-resources/resources.json")
// if the file is not found, that is not a fatal error
// troubleshoot 0.9.15 and earlier did not collect that file
