mirror of https://github.com/rancher/ui.git
parent
cd989a597a
commit
dd3e022088
|
|
@ -41,6 +41,7 @@ export default Component.extend({
|
|||
const kubernetes = get(info, 'kubernetes');
|
||||
const os = get(info, 'os');
|
||||
const arch = (get(node, 'labels') || {})['beta.kubernetes.io/arch'];
|
||||
const osType = (get(node, 'labels') || {})['beta.kubernetes.io/os'];
|
||||
|
||||
if ( kubernetes ) {
|
||||
array.push({
|
||||
|
|
@ -62,6 +63,10 @@ export default Component.extend({
|
|||
key: 'systemInfoSection.kernelVersion',
|
||||
value: get(os, 'kernelVersion'),
|
||||
});
|
||||
array.push({
|
||||
key: 'systemInfoSection.operatingSystem',
|
||||
value: get(os, 'operatingSystem'),
|
||||
});
|
||||
}
|
||||
|
||||
if ( arch ) {
|
||||
|
|
@ -70,6 +75,12 @@ export default Component.extend({
|
|||
value: arch,
|
||||
});
|
||||
}
|
||||
if ( osType ) {
|
||||
array.push({
|
||||
key: 'systemInfoSection.osType',
|
||||
value: osType,
|
||||
});
|
||||
}
|
||||
|
||||
return array;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue