1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix Openshift distribution detector (#1792)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-12-17 19:54:30 +02:00 committed by GitHub
parent 733fc8a658
commit de7bd32bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,12 +56,12 @@ export class DistributionDetector extends BaseClusterDetector {
return { value: "docker-desktop", accuracy: 80}; return { value: "docker-desktop", accuracy: 80};
} }
if (this.isCustom()) { if (this.isCustom() && await this.isOpenshift()) {
return { value: "custom", accuracy: 10}; return { value: "openshift", accuracy: 90};
} }
if (await this.isOpenshift()) { if (this.isCustom()) {
return { value: "openshift", accuracy: 90}; return { value: "custom", accuracy: 10};
} }
return { value: "unknown", accuracy: 10}; return { value: "unknown", accuracy: 10};