mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
Getting the encrypt image workflow to begin working while fixing up some build errors
This commit is contained in:
parent
8b6dbc1789
commit
fd39fdf173
@ -83,10 +83,12 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (image && cryptoOperation) {
|
if (image && cryptoOperation) {
|
||||||
|
const imageObject = JSON.parse(image);
|
||||||
|
|
||||||
this.value.spec.securityParameters = {
|
this.value.spec.securityParameters = {
|
||||||
cryptoOperation,
|
cryptoOperation,
|
||||||
sourceImageName: image.metadata.name,
|
sourceImageName: imageObject.metadata.name,
|
||||||
sourceImageNamespace: image.metadata.namespace
|
sourceImageNamespace: imageObject.metadata.namespace
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -95,7 +97,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
selectedImage: image || null,
|
selectedImage: null,
|
||||||
images: [],
|
images: [],
|
||||||
url: this.value.spec.url,
|
url: this.value.spec.url,
|
||||||
files: [],
|
files: [],
|
||||||
|
|||||||
@ -3,14 +3,11 @@ import { _EDIT } from '@shell/config/query-params';
|
|||||||
import { allHash } from '@shell/utils/promise';
|
import { allHash } from '@shell/utils/promise';
|
||||||
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
||||||
import Banner from '@components/Banner/Banner.vue';
|
import Banner from '@components/Banner/Banner.vue';
|
||||||
import CompatibilityMatrix from '../CompatibilityMatrix';
|
|
||||||
import DeviceList from './DeviceList';
|
|
||||||
|
|
||||||
import remove from 'lodash/remove';
|
import remove from 'lodash/remove';
|
||||||
import { set } from '@shell/utils/object';
|
import { set } from '@shell/utils/object';
|
||||||
import { HCI } from '../../../types';
|
import { HCI } from '../../../types';
|
||||||
import DeviceList from './DeviceList';
|
import DeviceList from './DeviceList';
|
||||||
import CompatibilityMatrix from './CompatibilityMatrix';
|
import CompatibilityMatrix from '../CompatibilityMatrix';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'VirtualMachinePCIDevices',
|
name: 'VirtualMachinePCIDevices',
|
||||||
|
|||||||
@ -15,11 +15,8 @@ import Labels from '@shell/components/form/Labels';
|
|||||||
|
|
||||||
import NodeScheduling from '@shell/components/form/NodeScheduling';
|
import NodeScheduling from '@shell/components/form/NodeScheduling';
|
||||||
import PodAffinity from '@shell/components/form/PodAffinity';
|
import PodAffinity from '@shell/components/form/PodAffinity';
|
||||||
import AccessCredentials from './VirtualMachineAccessCredentials';
|
|
||||||
import PciDevices from './VirtualMachinePciDevices/index';
|
|
||||||
import VGpuDevices from './VirtualMachineVGpuDevices/index';
|
import VGpuDevices from './VirtualMachineVGpuDevices/index';
|
||||||
import UsbDevices from './VirtualMachineUSBDevices/index';
|
import UsbDevices from './VirtualMachineUSBDevices/index';
|
||||||
import RestartVMDialog from '../../dialog/RestartVMDialog';
|
|
||||||
import KeyValue from '@shell/components/form/KeyValue';
|
import KeyValue from '@shell/components/form/KeyValue';
|
||||||
|
|
||||||
import { clear } from '@shell/utils/array';
|
import { clear } from '@shell/utils/array';
|
||||||
@ -35,7 +32,6 @@ import { parseVolumeClaimTemplates } from '@pkg/utils/vm';
|
|||||||
import VM_MIXIN from '../../mixins/harvester-vm';
|
import VM_MIXIN from '../../mixins/harvester-vm';
|
||||||
import { HCI } from '../../types';
|
import { HCI } from '../../types';
|
||||||
import RestartVMDialog from '../../dialog/RestartVMDialog';
|
import RestartVMDialog from '../../dialog/RestartVMDialog';
|
||||||
import VirtualMachineVGpuDevices from './VirtualMachineVGpuDevices/index';
|
|
||||||
import PciDevices from './VirtualMachinePciDevices/index';
|
import PciDevices from './VirtualMachinePciDevices/index';
|
||||||
import AccessCredentials from './VirtualMachineAccessCredentials';
|
import AccessCredentials from './VirtualMachineAccessCredentials';
|
||||||
import CloudConfig from './VirtualMachineCloudConfig';
|
import CloudConfig from './VirtualMachineCloudConfig';
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import { clone } from '@shell/utils/object';
|
import { clone } from '@shell/utils/object';
|
||||||
import Secret from '@shell/models/secret';
|
|
||||||
import { HCI } from '../../types';
|
import { HCI } from '../../types';
|
||||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||||
import Secret from '@shell/models/secret';
|
import Secret from '@shell/models/secret';
|
||||||
|
|||||||
@ -88,7 +88,7 @@ export default class HciVmImage extends HarvesterResource {
|
|||||||
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
|
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
|
||||||
params: { resource: HCI.IMAGE },
|
params: { resource: HCI.IMAGE },
|
||||||
query: {
|
query: {
|
||||||
image: this,
|
image: JSON.stringify({metadata: { name: this.metadata.name, namespace: this.metadata.namespace }}),
|
||||||
fromPage: HCI.IMAGE,
|
fromPage: HCI.IMAGE,
|
||||||
sourceType: 'clone',
|
sourceType: 'clone',
|
||||||
cryptoOperation: 'encrypt'
|
cryptoOperation: 'encrypt'
|
||||||
@ -103,7 +103,7 @@ export default class HciVmImage extends HarvesterResource {
|
|||||||
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
|
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
|
||||||
params: { resource: HCI.IMAGE },
|
params: { resource: HCI.IMAGE },
|
||||||
query: {
|
query: {
|
||||||
image: this,
|
image: JSON.stringify({metadata: { name: this.metadata.name, namespace: this.metadata.namespace }}),
|
||||||
fromPage: HCI.IMAGE,
|
fromPage: HCI.IMAGE,
|
||||||
sourceType: 'clone',
|
sourceType: 'clone',
|
||||||
cryptoOperation: 'decrypt'
|
cryptoOperation: 'decrypt'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user