mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Detect Mirantis Kubernetes Engine (#1622)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
bcb6f7469b
commit
13914a8bea
@ -36,6 +36,10 @@ export class DistributionDetector extends BaseClusterDetector {
|
||||
return { value: "digitalocean", accuracy: 90};
|
||||
}
|
||||
|
||||
if (this.isMirantis()) {
|
||||
return { value: "mirantis", accuracy: 90};
|
||||
}
|
||||
|
||||
if (this.isMinikube()) {
|
||||
return { value: "minikube", accuracy: 80};
|
||||
}
|
||||
@ -75,6 +79,10 @@ export class DistributionDetector extends BaseClusterDetector {
|
||||
return this.cluster.apiUrl.endsWith("azmk8s.io");
|
||||
}
|
||||
|
||||
protected isMirantis() {
|
||||
return this.version.includes("-mirantis-") || this.version.includes("-docker-");
|
||||
}
|
||||
|
||||
protected isDigitalOcean() {
|
||||
return this.cluster.apiUrl.endsWith("k8s.ondigitalocean.com");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user