mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix alibaba distro detect
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
42817a6d97
commit
f04e2a5f1e
@ -40,6 +40,10 @@ export class DistributionDetector extends BaseClusterDetector {
|
|||||||
return { value: "mirantis", accuracy: 90};
|
return { value: "mirantis", accuracy: 90};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.isAlibaba()) {
|
||||||
|
return { value: "alibaba", accuracy: 90};
|
||||||
|
}
|
||||||
|
|
||||||
if (this.isMinikube()) {
|
if (this.isMinikube()) {
|
||||||
return { value: "minikube", accuracy: 80};
|
return { value: "minikube", accuracy: 80};
|
||||||
}
|
}
|
||||||
@ -127,6 +131,10 @@ export class DistributionDetector extends BaseClusterDetector {
|
|||||||
return this.version.includes("+k3s");
|
return this.version.includes("+k3s");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected isAlibaba() {
|
||||||
|
return this.version.includes("-aliyun");
|
||||||
|
}
|
||||||
|
|
||||||
protected async isOpenshift() {
|
protected async isOpenshift() {
|
||||||
try {
|
try {
|
||||||
const response = await this.k8sRequest("");
|
const response = await this.k8sRequest("");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user