From d8300233383d61f58d0fcea75eb6b9aed2f3ec3b Mon Sep 17 00:00:00 2001 From: Jari Kolehmainen Date: Sun, 20 Dec 2020 15:30:26 +0200 Subject: [PATCH] fix vmware distro detect Signed-off-by: Jari Kolehmainen --- src/main/cluster-detectors/distribution-detector.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/cluster-detectors/distribution-detector.ts b/src/main/cluster-detectors/distribution-detector.ts index 041a8b9158..ef2776a1d5 100644 --- a/src/main/cluster-detectors/distribution-detector.ts +++ b/src/main/cluster-detectors/distribution-detector.ts @@ -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("");