Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <[email protected]>
(cherry picked from commit 98c6161)
  • Loading branch information
torchiaf authored and mergify[bot] committed Oct 8, 2024
1 parent 5596e68 commit 35bd736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/harvester/list/kubevirt.io.virtualmachine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
import ConsoleBar from '../components/VMConsoleBar';
import ResourceTable from '@shell/components/ResourceTable';
import HarvesterVmState from '../formatters/HarvesterVmState';
import { PVC, PV, NODE, POD, STORAGE_CLASS } from '@shell/config/types';
import {
PVC, PV, NODE, POD, STORAGE_CLASS
} from '@shell/config/types';
import { STATE, AGE, NAME, NAMESPACE } from '@shell/config/table-headers';
import { HCI } from '../types';
import { allHash } from '@shell/utils/promise';
Expand Down
3 changes: 2 additions & 1 deletion pkg/harvester/models/kubevirt.io.virtualmachine.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,12 @@ export default class VirtVm extends HarvesterResource {
const pvcs = this.$rootGetters[`${ this.productInStore }/all`](PVC);

const volumeClaimNames = this.spec.template.spec.volumes?.map(v => v.persistentVolumeClaim?.claimName).filter(v => !!v) || [];

return pvcs.filter(pvc => volumeClaimNames.includes(pvc.metadata.name));
}

get longhornV2Volumes() {
return this.volumes.filter((volume) => volume.storageClass.isLonghornV2);
return this.volumes.filter(volume => volume.storageClass.isLonghornV2);
}

get encryptedVolumeType() {
Expand Down

0 comments on commit 35bd736

Please sign in to comment.