import YAML from 'yaml'; import jsyaml from 'js-yaml'; import isEqual from 'lodash/isEqual'; import { clone } from '@shell/utils/object'; import { SECRET } from '@shell/config/types'; import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations'; import { HCI } from '../../types'; import { parseVolumeClaimTemplates } from '../../utils/vm'; import { OS } from './index'; export const QGA_JSON = { package_update: true, packages: ['qemu-guest-agent'], runcmd: [ [ 'systemctl', 'enable', '--now', 'qemu-guest-agent.service' ] ] }; export const QGA_MAP = { default: 'qemu-guest-agent.service' }; export const USB_TABLET = [{ bus: 'usb', name: 'tablet', type: 'tablet' }]; export const SSH_EXISTING_TYPE = { EXISTING_ALL: 'EXISTING_ALL', EXISTING_ONLY_ANNOTATION: 'EXISTING_ANNOTATION', EXISTING_ONLY_CLOUD: 'EXISTING_CLOUD', }; // Cloud-init and Cloudbase-Init run user data starting with one of these as a script, MIME or another format, not as cloud-config. const OTHER_USER_DATA_FORMATS = [ '#!', '#include', '#cloud-boothook', '#part-handler', '#cloud-config-archive', '#cloud-config-jsonp', '## template:', '#ps1', 'rem cmd', '