mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix vmware distro detect
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
42817a6d97
commit
d830023338
1 file changed
+8
@@ -40,6 +40,10 @@ export class DistributionDetector extends BaseClusterDetector {
|
||||
return { value: "mirantis", accuracy: 90};
|
||||
}
|
||||
|
||||
if (this.isVMWare()) {
|
||||
return { value: "vmware", 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 isVMWare() {
|
||||
return this.version.includes("+vmware");
|
||||
}
|
||||
|
||||
protected async isOpenshift() {
|
||||
try {
|
||||
const response = await this.k8sRequest("");
|
||||
|
||||
Reference in new issue
Block a user