mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Change method orders to avoid conflicts
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
7a5be1566a
commit
0800a0c83d
@ -40,14 +40,14 @@ export class DistributionDetector extends BaseClusterDetector {
|
|||||||
return { value: "mirantis", accuracy: 90};
|
return { value: "mirantis", accuracy: 90};
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.isTke()) {
|
|
||||||
return { value: "tencent", accuracy: 90};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (this.isHuawei()) {
|
if (this.isHuawei()) {
|
||||||
return { value: "huawei", accuracy: 90};
|
return { value: "huawei", accuracy: 90};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.isTke()) {
|
||||||
|
return { value: "tencent", accuracy: 90};
|
||||||
|
}
|
||||||
|
|
||||||
if (this.isMinikube()) {
|
if (this.isMinikube()) {
|
||||||
return { value: "minikube", accuracy: 80};
|
return { value: "minikube", accuracy: 80};
|
||||||
}
|
}
|
||||||
@ -123,6 +123,10 @@ export class DistributionDetector extends BaseClusterDetector {
|
|||||||
return this.cluster.contextName === "docker-desktop";
|
return this.cluster.contextName === "docker-desktop";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected isTke() {
|
||||||
|
return this.version.includes("-tke.");
|
||||||
|
}
|
||||||
|
|
||||||
protected isCustom() {
|
protected isCustom() {
|
||||||
return this.version.includes("+");
|
return this.version.includes("+");
|
||||||
}
|
}
|
||||||
@ -135,10 +139,6 @@ export class DistributionDetector extends BaseClusterDetector {
|
|||||||
return this.version.includes("+k3s");
|
return this.version.includes("+k3s");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected isTke() {
|
|
||||||
return this.version.includes("-tke.");
|
|
||||||
}
|
|
||||||
|
|
||||||
protected isHuawei() {
|
protected isHuawei() {
|
||||||
return this.version.includes("-CCE");
|
return this.version.includes("-CCE");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user