Skip to content

Commit

Permalink
[kubevirt] Display VM RunStrategy column, fix Memory column
Browse files Browse the repository at this point in the history
  • Loading branch information
jtomasek committed Mar 18, 2024
1 parent cbb6175 commit 778938f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ export default {
STATE,
NAME,
NAMESPACE,
{
name: 'RunStrategy',
label: 'Run Strategy',
value: 'runStrategyLabel',
},
{
name: 'CPU',
label: 'CPU',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export default class VirtualMachine extends SteveModel {
get displayMemory() {
return (
this.spec.template.spec.domain.resources?.limits?.memory ||
this.spec.template.spec.domain.resources?.requests?.memory
this.spec.template.spec.domain.resources?.requests?.memory ||
this.spec.template.spec.domain.memory?.guest ||
'0Gi'
);
}

Expand Down

0 comments on commit 778938f

Please sign in to comment.