mirror of https://github.com/rancher/dashboard.git
45 lines
953 B
TypeScript
45 lines
953 B
TypeScript
import { IClusterProvisioner, ClusterProvisionerContext } from '@shell/core/types';
|
|
import CruEKS from './components/CruEKS.vue';
|
|
import { mapDriver } from '@shell/store/plugins';
|
|
import { Component } from 'vue/types/umd';
|
|
|
|
export class EKSProvisioner implements IClusterProvisioner {
|
|
static ID = 'amazoneks'
|
|
|
|
constructor(private context: ClusterProvisionerContext) {
|
|
mapDriver(this.id, 'aws' );
|
|
}
|
|
|
|
get id(): string {
|
|
return EKSProvisioner.ID;
|
|
}
|
|
|
|
get icon(): any {
|
|
return require('./assets/amazoneks.svg');
|
|
}
|
|
|
|
get group(): string {
|
|
return 'kontainer';
|
|
}
|
|
|
|
get label(): string {
|
|
return this.context.t('eks.label');
|
|
}
|
|
|
|
get component(): Component {
|
|
return CruEKS;
|
|
}
|
|
|
|
get detailTabs(): any {
|
|
return {
|
|
machines: false,
|
|
logs: false,
|
|
registration: false,
|
|
snapshots: false,
|
|
related: true,
|
|
events: false,
|
|
conditions: false,
|
|
};
|
|
}
|
|
}
|