Fix huawei distro detect (#1819)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-12-23 08:30:48 +02:00
1 parent e5967c0700
commit f834c7a61b
1 file changed
+8
@@ -40,6 +40,10 @@ export class DistributionDetector extends BaseClusterDetector {
return { value: "mirantis", accuracy: 90};
}
if (this.isHuawei()) {
return { value: "huawei", accuracy: 90};
}
if (this.isMinikube()) {
return { value: "minikube", accuracy: 80};
}
@@ -127,6 +131,10 @@ export class DistributionDetector extends BaseClusterDetector {
return this.version.includes("+k3s");
}
protected isHuawei() {
return this.version.includes("-CCE");
}
protected async isOpenshift() {
try {
const response = await this.k8sRequest("");