From 8e261e8c4d035c440230e84d7821421e0b896c7c Mon Sep 17 00:00:00 2001 From: Ugo Palatucci Date: Wed, 22 Nov 2023 10:10:29 +0100 Subject: [PATCH] Add VirtualMachineClone model --- console/models/VirtualMachineCloneModel.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 console/models/VirtualMachineCloneModel.ts diff --git a/console/models/VirtualMachineCloneModel.ts b/console/models/VirtualMachineCloneModel.ts new file mode 100644 index 00000000..fcffb7ff --- /dev/null +++ b/console/models/VirtualMachineCloneModel.ts @@ -0,0 +1,22 @@ +import { K8sModel } from '@openshift-console/dynamic-plugin-sdk/lib/api/common-types'; + +import { modelToGroupVersionKind, modelToRef } from '../modelUtils'; + +const VirtualMachineCloneModel: K8sModel = { + label: 'VirtualMachineClone', + labelPlural: 'VirtualMachineClones', + apiVersion: 'v1alpha1', + apiGroup: 'clone.kubevirt.io', + plural: 'virtualmachineclones', + abbr: 'VMS', + namespaced: true, + kind: 'VirtualMachineClone', + id: 'virtualmachineclone', + crd: true, +}; + +export const VirtualMachineCloneModelGroupVersionKind = + modelToGroupVersionKind(VirtualMachineCloneModel); +export const VirtualMachineCloneModelRef = modelToRef(VirtualMachineCloneModel); + +export default VirtualMachineCloneModel;