-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore kubevirt extensions for topology
- Loading branch information
Showing
277 changed files
with
17,372 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
reviewers: | ||
- vojtechszocs | ||
- pcbailey | ||
- gouyang | ||
- metalice | ||
- avivtur | ||
- upalatucci | ||
approvers: | ||
- vojtechszocs | ||
- pcbailey | ||
- gouyang | ||
- metalice | ||
- avivtur | ||
- upalatucci | ||
labels: | ||
- component/kubevirt |
150 changes: 150 additions & 0 deletions
150
frontend/packages/kubevirt-plugin/console-extensions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
[ | ||
{ | ||
"type": "console.flag", | ||
"properties": { | ||
"handler": { "$codeRef": "kubevirtFlags.detectKubevirtVirtualMachines" } | ||
} | ||
}, | ||
{ | ||
"type": "console.flag/model", | ||
"properties": { | ||
"flag": "KUBEVIRT_CDI", | ||
"model": { | ||
"group": "cdi.kubevirt.io", | ||
"version": "v1beta1", | ||
"kind": "CDIConfig" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "console.topology/component/factory", | ||
"properties": { | ||
"getFactory": { | ||
"$codeRef": "topology.componentFactory" | ||
} | ||
}, | ||
"flags": { | ||
"required": ["KUBEVIRT"] | ||
} | ||
}, | ||
{ | ||
"type": "console.topology/data/factory", | ||
"properties": { | ||
"id": "kubevirt-topology-model-factory", | ||
"priority": 200, | ||
"resources": { | ||
"virtualmachines": { | ||
"model": { "kind": "VirtualMachine", "group": "kubevirt.io" }, | ||
"opts": { | ||
"isList": true, | ||
"optional": true | ||
} | ||
}, | ||
"virtualmachineinstances": { | ||
"model": { "kind": "VirtualMachineInstance", "group": "kubevirt.io" }, | ||
"opts": { | ||
"isList": true, | ||
"optional": true | ||
} | ||
}, | ||
"virtualmachinetemplates": { | ||
"opts": { | ||
"kind": "Template", | ||
"isList": true, | ||
"optional": true, | ||
"selector": { | ||
"matchLabels": { | ||
"template.kubevirt.io/type": "base" | ||
} | ||
} | ||
} | ||
}, | ||
"migrations": { | ||
"model": { "kind": "VirtualMachineInstanceMigration", "group": "kubevirt.io" }, | ||
"opts": { | ||
"isList": true, | ||
"optional": true | ||
} | ||
}, | ||
"dataVolumes": { | ||
"model": { "kind": "DataVolume", "group": "cdi.kubevirt.io" }, | ||
"opts": { | ||
"isList": true, | ||
"optional": true | ||
} | ||
}, | ||
"pods": { | ||
"opts": { | ||
"isList": true, | ||
"kind": "Pod", | ||
"optional": true | ||
} | ||
} | ||
}, | ||
"getDataModel": { | ||
"$codeRef": "topology.getDataModel" | ||
}, | ||
"isResourceDepicted": { | ||
"$codeRef": "topology.isResourceDepicted" | ||
} | ||
}, | ||
"flags": { | ||
"required": ["KUBEVIRT"] | ||
} | ||
}, | ||
{ | ||
"type": "console.topology/details/tab-section", | ||
"properties": { | ||
"id": "topology-tab-section-vm-details", | ||
"tab": "topology-side-bar-tab-details", | ||
"provider": { | ||
"$codeRef": "topologySidebar.useVmSidePanelDetailsTabSection" | ||
} | ||
}, | ||
"flags": { | ||
"required": ["KUBEVIRT"] | ||
} | ||
}, | ||
{ | ||
"type": "console.topology/adapter/pod", | ||
"properties": { | ||
"adapt": { | ||
"$codeRef": "topologySidebar.getVmSidePanelPodsAdapter" | ||
} | ||
}, | ||
"flags": { | ||
"required": ["KUBEVIRT"] | ||
} | ||
}, | ||
{ | ||
"type": "console.topology/adapter/network", | ||
"properties": { | ||
"adapt": { | ||
"$codeRef": "topologySidebar.getVmSidePanelNetworkAdapter" | ||
} | ||
}, | ||
"flags": { | ||
"required": ["KUBEVIRT"] | ||
} | ||
}, | ||
{ | ||
"type": "console.topology/details/resource-link", | ||
"properties": { | ||
"priority": 100, | ||
"link": { "$codeRef": "topologySidebar.getVmSideBarResourceLink" } | ||
}, | ||
"flags": { | ||
"required": ["KUBEVIRT"] | ||
} | ||
}, | ||
{ | ||
"type": "console.action/provider", | ||
"properties": { | ||
"contextId": "topology-actions", | ||
"provider": { "$codeRef": "actions.useModifyApplicationActionProvider" } | ||
}, | ||
"flags": { | ||
"required": ["KUBEVIRT"] | ||
} | ||
} | ||
] |
152 changes: 152 additions & 0 deletions
152
frontend/packages/kubevirt-plugin/locales/en/kubevirt-plugin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
{ | ||
"Add": "Add", | ||
"Pending Changes": "Pending Changes", | ||
"You must restart your virtual machine to implement your changes.": "You must restart your virtual machine to implement your changes.", | ||
"If you make changes to the following settings, you must to restart the virtual machine in order for them to apply.": "If you make changes to the following settings, you must to restart the virtual machine in order for them to apply.", | ||
"Restart required to apply changes": "Restart required to apply changes", | ||
"Select a boot source": "Select a boot source", | ||
"Add source": "Add source", | ||
"All sources selected": "All sources selected", | ||
"No resource selected": "No resource selected", | ||
"VM will attempt to boot from disks by order of apearance in YAML file": "VM will attempt to boot from disks by order of apearance in YAML file", | ||
"VM Boot Order List": "VM Boot Order List", | ||
"Hide default boot disks": "Hide default boot disks", | ||
"Show default boot disks": "Show default boot disks", | ||
"View details": "View details", | ||
"Hide details": "Hide details", | ||
"Name": "Name", | ||
"Device name": "Device name", | ||
"Mediated devices": "Mediated devices", | ||
"PCI Host devices": "PCI Host devices", | ||
"Select Hardware device": "Select Hardware device", | ||
"Filter by resource name..": "Filter by resource name..", | ||
"Name is Empty": "Name is Empty", | ||
"Name is already taken by another device in this VM": "Name is already taken by another device in this VM", | ||
"Virtual machine boot order": "Virtual machine boot order", | ||
"Save": "Save", | ||
"Boot order has been updated outside this flow.": "Boot order has been updated outside this flow.", | ||
"Saving these changes will override any boot order previously saved.<1></1>To see the updated order <4>reload the content</4>.": "Saving these changes will override any boot order previously saved.<1></1>To see the updated order <4>reload the content</4>.", | ||
"Name is already used by another virtual machine in this namespace": "Name is already used by another virtual machine in this namespace", | ||
"The VM {{vmName}} is still running. It will be powered off while cloning.": "The VM {{vmName}} is still running. It will be powered off while cloning.", | ||
"Clone Virtual Machine": "Clone Virtual Machine", | ||
"new VM name": "new VM name", | ||
"Description": "Description", | ||
"Namespace": "Namespace", | ||
"Start virtual machine on clone": "Start virtual machine on clone", | ||
"Configuration": "Configuration", | ||
"Clone": "Clone", | ||
"{{flavor}}: {{count}} CPU | {{memory}} Memory": "{{flavor}}: {{count}} CPU | {{memory}} Memory", | ||
"Edit Description": "Edit Description", | ||
"description text area": "description text area", | ||
"No GPU devices found": "No GPU devices found", | ||
"GPU devices": "GPU devices", | ||
"Add GPU device": "Add GPU device", | ||
"Adding and removing hardware devices require permissions for Hyperconverged CRD. ": "Adding and removing hardware devices require permissions for Hyperconverged CRD. ", | ||
"Learn more": "Learn more", | ||
"No Host devices found": "No Host devices found", | ||
"Host devices": "Host devices", | ||
"Add Host device": "Add Host device", | ||
"Confirm": "Confirm", | ||
"Cancel": "Cancel", | ||
"Delete {{modelLabel}}?": "Delete {{modelLabel}}?", | ||
"Are you sure you want to delete <1>{{name}}</1> in namespace <3>{{namespace}}</3>?": "Are you sure you want to delete <1>{{name}}</1> in namespace <3>{{namespace}}</3>?", | ||
"The following resources will be deleted along with this virtual machine. Unchecked items will not be deleted.": "The following resources will be deleted along with this virtual machine. Unchecked items will not be deleted.", | ||
"Delete Disks ({{ownedVolumeResourcesLength}}x)": "Delete Disks ({{ownedVolumeResourcesLength}}x)", | ||
"Delete {{vmImportModelLabel}} Resource": "Delete {{vmImportModelLabel}} Resource", | ||
"<0>Warning: </0>All snapshots of this virtual machine will be deleted as well.": "<0>Warning: </0>All snapshots of this virtual machine will be deleted as well.", | ||
"Delete Virtual Machine alert": "Delete Virtual Machine alert", | ||
"Delete": "Delete", | ||
"Delete Virtual Machine Instance?": "Delete Virtual Machine Instance?", | ||
"The following resources will be deleted along with this virtual machine instance. Unchecked items will not be deleted.": "The following resources will be deleted along with this virtual machine instance. Unchecked items will not be deleted.", | ||
"Delete Virtual Machine Instance alert": "Delete Virtual Machine Instance alert", | ||
"<0>{{count}} User</0> currently logged in to this VM. Proceeding with this operation may cause logged in users to lose data._one": "<0>{{count}} User</0> currently logged in to this VM. Proceeding with this operation may cause logged in users to lose data.", | ||
"<0>{{count}} User</0> currently logged in to this VM. Proceeding with this operation may cause logged in users to lose data._other": "<0>{{count}} User</0> currently logged in to this VM. Proceeding with this operation may cause logged in users to lose data.", | ||
"Alert": "Alert", | ||
"An error occurred": "An error occurred", | ||
"Save and Restart": "Save and Restart", | ||
"Permissions required": "Permissions required", | ||
"Close": "Close", | ||
"Restart Virtual Machine": "Restart Virtual Machine", | ||
"Restart Virtual Machine alert": "Restart Virtual Machine alert", | ||
"restart": "restart", | ||
"Restart": "Restart", | ||
"Edit pause state": "Edit pause state", | ||
"This VM is paused. To unpause it, click the Unpause button below. For further details, check with your system administrator.": "This VM is paused. To unpause it, click the Unpause button below. For further details, check with your system administrator.", | ||
"Unpause": "Unpause", | ||
"SSH access is using a node port. Node port requires additional port resources.": "SSH access is using a node port. Node port requires additional port resources.", | ||
"SSH access": "SSH access", | ||
"Expose SSH access for <2></2>": "Expose SSH access for <2></2>", | ||
"Node port": "Node port", | ||
"The following hot-plugged disks will be removed from the virtual machine": "The following hot-plugged disks will be removed from the virtual machine", | ||
"<0>{diskList}</0>": "<0>{diskList}</0>", | ||
"Are you sure you want to {actionLabel} <3>{name}</3> in namespace <6>{namespace}</6>?": "Are you sure you want to {actionLabel} <3>{name}</3> in namespace <6>{namespace}</6>?", | ||
"<0>This virtual machine will start as soon as the import is complete. If you proceed, you will not be able to change this option.</0>Are you sure you want to start <2>{name}</2> in namespace <5>{namespace}</5> after it has imported?": "<0>This virtual machine will start as soon as the import is complete. If you proceed, you will not be able to change this option.</0>Are you sure you want to start <2>{name}</2> in namespace <5>{namespace}</5> after it has imported?", | ||
"Start": "Start", | ||
" Start": " Start", | ||
"Stop": "Stop", | ||
"Stop alert": "Stop alert", | ||
"stop": "stop", | ||
"Restart alert": "Restart alert", | ||
"Pause": "Pause", | ||
"pause": "pause", | ||
"Resume": "Resume", | ||
"unpause": "unpause", | ||
"Do you wish to migrate <1>{name}</1> vmi to another node?": "Do you wish to migrate <1>{name}</1> vmi to another node?", | ||
"Migrate Node to Node": "Migrate Node to Node", | ||
"Are you sure you want to cancel <1>{name}</1> migration in <4>{namespace}</4> namespace?": "Are you sure you want to cancel <1>{name}</1> migration in <4>{namespace}</4> namespace?", | ||
"Cancel Virtual Machine Migration": "Cancel Virtual Machine Migration", | ||
"Cancel Migration": "Cancel Migration", | ||
"Open Console": "Open Console", | ||
"Delete Virtual Machine": "Delete Virtual Machine", | ||
"Delete Virtual Machine Instance": "Delete Virtual Machine Instance", | ||
"Cancel Import?": "Cancel Import?", | ||
"Are you sure you want to cancel importing {{vmImportElem}}? It will also delete the newly created {{vmElem}} in the {{nsElem}} namespace.": "Are you sure you want to cancel importing {{vmImportElem}}? It will also delete the newly created {{vmElem}} in the {{nsElem}} namespace.", | ||
"Are you sure you want to cancel importing {{vmImportElem}} in the {{nsElem}} namespace?": "Are you sure you want to cancel importing {{vmImportElem}} in the {{nsElem}} namespace?", | ||
"Cancel Import": "Cancel Import", | ||
"Not available": "Not available", | ||
"View Pending Changes": "View Pending Changes", | ||
"Template": "Template", | ||
"Status": "Status", | ||
"Pod": "Pod", | ||
"Boot order": "Boot order", | ||
"IP address": "IP address", | ||
"Hostname": "Hostname", | ||
"Time zone": "Time zone", | ||
"Node": "Node", | ||
"Workload profile": "Workload profile", | ||
"User credentials": "User credentials", | ||
"user: {{user}}": "user: {{user}}", | ||
"Requires SSH service": "Requires SSH service", | ||
"Virtual machine not running": "Virtual machine not running", | ||
"port: {{port}}": "port: {{port}}", | ||
"SSH service disabled": "SSH service disabled", | ||
"Hardware devices": "Hardware devices", | ||
"Attach GPU device to VM": "Attach GPU device to VM", | ||
"You do not have permissions to attach GPU devices. Contact your system administrator for more information.": "You do not have permissions to attach GPU devices. Contact your system administrator for more information.", | ||
"{{gpusCount}} GPU devices": "{{gpusCount}} GPU devices", | ||
"Attach Host device to VM": "Attach Host device to VM", | ||
"You do not have permissions to attach Host devices. Contact your system administrator for more information.": "You do not have permissions to attach Host devices. Contact your system administrator for more information.", | ||
"{{hostDevicesCount}} Host devices": "{{hostDevicesCount}} Host devices", | ||
"IP Addresses ({{ips}})": "IP Addresses ({{ips}})", | ||
"+{{ips}} more": "+{{ips}} more", | ||
"Operating system": "Operating system", | ||
"Migration - Pending": "Migration - Pending", | ||
"Migration - Scheduling": "Migration - Scheduling", | ||
"Migration - Preparing Target": "Migration - Preparing Target", | ||
"Migration - Scheduled": "Migration - Scheduled", | ||
"Migration - Target Ready": "Migration - Target Ready", | ||
"Migration - Running": "Migration - Running", | ||
"virtio": "virtio", | ||
"Optimized for best performance. Supported by most Linux distributions. Windows requires additional drivers to use this model": "Optimized for best performance. Supported by most Linux distributions. Windows requires additional drivers to use this model", | ||
"sata": "sata", | ||
"Supported by most operating systems including Windows out of the box. Offers lower performance compared to virtio. Consider using it for CD-ROM devices": "Supported by most operating systems including Windows out of the box. Offers lower performance compared to virtio. Consider using it for CD-ROM devices", | ||
"scsi": "scsi", | ||
"Paravirtualized iSCSI HDD driver offers similar functionality to the virtio-block device, with some additional enhancements. In particular, this driver supports adding hundreds of devices, and names devices using the standard SCSI device naming scheme": "Paravirtualized iSCSI HDD driver offers similar functionality to the virtio-block device, with some additional enhancements. In particular, this driver supports adding hundreds of devices, and names devices using the standard SCSI device naming scheme", | ||
"Guest agent required": "Guest agent required", | ||
"VM name cannot be empty": "VM name cannot be empty", | ||
"VM name name can contain only alphanumeric characters": "VM name name can contain only alphanumeric characters", | ||
"VM name must start/end with alphanumeric characters": "VM name must start/end with alphanumeric characters", | ||
"VM name cannot contain uppercase characters": "VM name cannot contain uppercase characters", | ||
"VM name is too long": "VM name is too long", | ||
"VM name is too short": "VM name is too short" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "@console/kubevirt-plugin", | ||
"version": "0.0.0-fixed", | ||
"description": "Kubevirt - Virtual machines addon for Kubernetes", | ||
"private": true, | ||
"scripts": { | ||
"lint": "yarn --cwd ../.. eslint packages/kubevirt-plugin" | ||
}, | ||
"dependencies": { | ||
"@console/internal": "0.0.0-fixed", | ||
"@console/plugin-sdk": "0.0.0-fixed", | ||
"@console/shared": "0.0.0-fixed", | ||
"@console/topology": "0.0.0-fixed", | ||
"@console/dev-console": "0.0.0-fixed", | ||
"unique-names-generator": "4.3.1" | ||
}, | ||
"consolePlugin": { | ||
"entry": "src/plugin.tsx", | ||
"exposedModules": { | ||
"models": "src/models/index.ts", | ||
"standaloneConsole": "src/components/vms/vm-console/StandaloneVMConsolePage.tsx", | ||
"icons": "src/utils/icons.tsx", | ||
"createVM": "src/components/create-vm", | ||
"contextProvider": "src/components/cdi-upload-provider/cdi-upload-provider.tsx", | ||
"pvcSelectors": "src/selectors/pvc/selectors.ts", | ||
"pvcAlert": "src/components/cdi-upload-provider/pvc-alert-extension.tsx", | ||
"pvcUploadStatus": "src/components/cdi-upload-provider/upload-pvc-popover.tsx", | ||
"pvcCloneStatus": "src/components/pvc-status/clone-pvc-status.tsx", | ||
"pvcDelete": "src/components/cdi-upload-provider/pvc-delete-extension.tsx", | ||
"reduxReducer": "src/redux/index.ts", | ||
"UploadPVCPage": "src/components/cdi-upload-provider/upload-pvc-form/upload-pvc-form.tsx", | ||
"VMCreateYAML": "src/components/vms/vm-create-yaml.tsx", | ||
"CreateVMWizardPage": "src/components/create-vm-wizard/create-vm-wizard.tsx", | ||
"CreateVM": "src/components/create-vm/create-vm.tsx", | ||
"VirtualizationWizardNavigator": "src/components/VirtualizationWizardNavigator/VirtualizationWizardNavigator.tsx", | ||
"VirtualMachinesDetailsPage": "src/components/vms/vm-details-page.tsx", | ||
"VirtualMachinesInstanceDetailsPage": "src/components/vms/vmi-details-page.tsx", | ||
"VirtualizationPage": "src/components/vms/virtualization.tsx", | ||
"VMTemplateDetailsPage": "src/components/vm-templates/vm-template-details-page.tsx", | ||
"VirtualMachineTemplatesPage": "src/components/vm-templates/vm-template.tsx", | ||
"SnapshotDetailsPage": "src/components/vm-snapshots/vm-snapshot-details.tsx", | ||
"DevConsoleCreateVmForm": "src/components/create-vm/dev-console/dev-console-create-vm-form.tsx", | ||
"CustomizeSourceForm": "src/components/vm-templates/customize-source/CustomizeSourceForm.tsx", | ||
"CustomizeSource": "src/components/vm-templates/customize-source/CustomizeSource.tsx", | ||
"yamlTemplates": "src/models/templates/index.ts", | ||
"dashboardHealth": "src/components/dashboards-page/overview-dashboard/health.ts", | ||
"dashboardInventory": "src/components/dashboards-page/overview-dashboard/inventory.tsx", | ||
"dashboardActivity": "src/components/dashboards-page/overview-dashboard/activity.tsx", | ||
"topology": "src/topology/topology-plugin.ts", | ||
"kubevirtFlags": "src/flags", | ||
"topologySidebar": "src/topology/vm-tab-sections.tsx", | ||
"actions": "src/actions/provider.ts", | ||
"HardwareDevicesPage": "src/components/hardware-devices/Page/HardwareDevicesPage.tsx", | ||
"VirtualizationOverviewPage": "src/components/virtualization-overview/VirtualizationOverviewPage.tsx" | ||
} | ||
} | ||
} |
Oops, something went wrong.