mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-03-22 13:11:47 +00:00
14 lines
334 B
JavaScript
14 lines
334 B
JavaScript
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
|
|
|
|
export function parseVolumeClaimTemplates(data) {
|
|
let out = [];
|
|
|
|
try {
|
|
out = JSON.parse(data?.metadata?.annotations?.[HCI_ANNOTATIONS.VOLUME_CLAIM_TEMPLATE]) || [];
|
|
} catch (e) {}
|
|
|
|
return out;
|
|
}
|
|
|
|
export const EMPTY_IMAGE = 'EMPTY_IMAGE';
|