mirror of
https://github.com/lensapp/lens.git
synced 2024-09-20 13:57:23 +03:00
Fix tencent distribution detect (#1816)
* fix tencent distribution detect Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * Change method orders to avoid conflicts Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com> Co-authored-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
206c88ea52
commit
09fc7c5f39
@ -48,6 +48,10 @@ export class DistributionDetector extends BaseClusterDetector {
|
||||
return { value: "huawei", accuracy: 90};
|
||||
}
|
||||
|
||||
if (this.isTke()) {
|
||||
return { value: "tencent", accuracy: 90};
|
||||
}
|
||||
|
||||
if (this.isMinikube()) {
|
||||
return { value: "minikube", accuracy: 80};
|
||||
}
|
||||
@ -123,6 +127,10 @@ export class DistributionDetector extends BaseClusterDetector {
|
||||
return this.cluster.contextName === "docker-desktop";
|
||||
}
|
||||
|
||||
protected isTke() {
|
||||
return this.version.includes("-tke.");
|
||||
}
|
||||
|
||||
protected isCustom() {
|
||||
return this.version.includes("+");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user