-
Notifications
You must be signed in to change notification settings - Fork 8
Add ocp_virt_vm template for OpenShift Virtualization VMs #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Implements playbook_cloudkit_create_vm.yml and playbook_cloudkit_delete_vm.yml to handle virtual machine creation and deletion operations. These playbooks integrate with the VM template system and provide proper resource management including namespace finalizers and locking mechanisms. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- Add create-vm and delete-vm job templates with vm-operations instance group - Configure vm-operations inventory and inventory source for VM management - Set up vm-operations-ig container group with kubernetes service account access 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
- extract_vm_template_info: Extract and normalize template IDs and parameters from VM orders - vm_settings: Apply default settings and merge with user parameters, including cloud-init defaults - vm_working_namespace: Retrieve and validate working namespace for VM resources 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Added needed params
This template enables VM provisioning on OpenShift using the Virtualization operator. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
type: str | ||
required: true | ||
description: The namespace where VM resources will be created | ||
template_parameters: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was discussed in another closed PR, but I think this list must be cleaned up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup. It's not used anymore.
default_node_request: | ||
- resourceClass: ocp_cluster | ||
numberOfNodes: 1 | ||
|
||
# This declares that for a VM built from this template, only the resource | ||
# classes listed here may be used. For VMs, this represents different | ||
# types of OpenShift clusters (standard, GPU-enabled, etc.) | ||
allowed_resource_classes: | ||
- ocp_cluster | ||
- ocp_virt_enabled | ||
- ocp_gpu_enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these parameters have no use for the moment, they can be removed
storage: "{{ vm_disk_size }}" | ||
state: present | ||
|
||
- name: Create DataVolumes for additional disks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove the support for multiple disks, it may be added later if there is a need
I think the first template should focus on a very small subset of parameters to start on. Their might be added later if their is a need. |
@adriengentil Ok. No problem. I will work on those fixes. |
Summary
🤖 Generated with Claude Code