mirror of https://github.com/rancher/dashboard.git
19 lines
421 B
JavaScript
19 lines
421 B
JavaScript
import { formatSi } from '@/utils/units';
|
|
|
|
export default {
|
|
|
|
nameDisplay() {
|
|
return this.name.replace(`${ this.metadata.annotations['objectset.rio.cattle.io/owner-name'] }-`, '');
|
|
},
|
|
|
|
provider() {
|
|
return 'vmwarevsphere';
|
|
},
|
|
|
|
providerSize() {
|
|
const size = formatSi(this.spec.template.spec.memorySize * 1048576, 1024, 'iB');
|
|
|
|
return `${ size }, ${ this.spec.template.spec.cpuCount } Core`;
|
|
}
|
|
};
|