-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[CI] Use Kubernetes GC to clean kubevirt VMs (packet-* jobs) #11530
base: master
Are you sure you want to change the base?
Commits on Oct 3, 2024
-
CI: use Kubernetes GC to delete kubevirt vms
This leverage the Kubernetes GC to delete kubevirt VMs, by using ownerReferences, with the CI pod running the playbook as the owner. This concretely means that the control plane in our CI cluster will delete the kubevirt VMs associated with a particular ci job as soon as that pod job is deleted, which usually happens when the job terminates, (barring errors, which will be addressed in the cluster directly) Upgrade to kubevirt.io/v1 for the VirtualMachine manifests, since the alpha version is deprecated.
Configuration menu - View commit details
-
Copy full SHA for 8edf78f - Browse repository at this point
Copy the full SHA 8edf78fView commit details -
CI: remove deletion tasks of 'packet' VMs
Kubevirt VMs deletion will be handled by the Kubernetes GC (see previous commit), remove all the codes handling that.
Configuration menu - View commit details
-
Copy full SHA for 3d78e96 - Browse repository at this point
Copy the full SHA 3d78e96View commit details
Commits on Oct 4, 2024
-
CI: use kubernetes.core.k8s_info instead of kubectl
Also, use the Ready condition of VirtualMachine instead of custom checks
Configuration menu - View commit details
-
Copy full SHA for a349121 - Browse repository at this point
Copy the full SHA a349121View commit details
Commits on Oct 7, 2024
-
CI: make the ansible inventory a directory
Not constraining the inventory to .ini allows us to use dynamic inventory, which is needed for simplifying kubevirt jobs inventory. Also reduces the scope of the ANSIBLE_INVENTORY variable.
Configuration menu - View commit details
-
Copy full SHA for 49e0388 - Browse repository at this point
Copy the full SHA 49e0388View commit details -
CI: use kubevirt.core dynamic inventory
This allows a single source of truth for the virtual machines in a kubevirt ci-run. `etcd_member_name` should be correctly handled in kubespray-defaults for testing the recover cases.
Configuration menu - View commit details
-
Copy full SHA for b9e2ba5 - Browse repository at this point
Copy the full SHA b9e2ba5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 678b791 - Browse repository at this point
Copy the full SHA 678b791View commit details -
CI: use VirtualMachineInstance for VMs
VMI in Kubevirt are the abstraction below VirtualMachine. - We don't really need the extra abstraction of VirtualMachine objects - Fix the provisioning playbook not waiting correctly on the VMs until they have an IP address to use for the dynamic inventory
Configuration menu - View commit details
-
Copy full SHA for 19a4aab - Browse repository at this point
Copy the full SHA 19a4aabView commit details