Getting the encrypt image workflow to begin working while fixing up some build errors

This commit is contained in:
Cody Jackson
2024-10-23 17:01:39 +02:00
committed by Francesco Torchia
parent 8b6dbc1789
commit fd39fdf173
5 changed files with 8 additions and 14 deletions
-1
View File
@@ -1,5 +1,4 @@
import { clone } from '@shell/utils/object';
import Secret from '@shell/models/secret';
import { HCI } from '../../types';
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
import Secret from '@shell/models/secret';
@@ -88,7 +88,7 @@ export default class HciVmImage extends HarvesterResource {
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
params: { resource: HCI.IMAGE },
query: {
image: this,
image: JSON.stringify({metadata: { name: this.metadata.name, namespace: this.metadata.namespace }}),
fromPage: HCI.IMAGE,
sourceType: 'clone',
cryptoOperation: 'encrypt'
@@ -103,7 +103,7 @@ export default class HciVmImage extends HarvesterResource {
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
params: { resource: HCI.IMAGE },
query: {
image: this,
image: JSON.stringify({metadata: { name: this.metadata.name, namespace: this.metadata.namespace }}),
fromPage: HCI.IMAGE,
sourceType: 'clone',
cryptoOperation: 'decrypt'