How togethercomputer/cluster-api-provider-kubevirt works
Main Components
a. Core Components:
• Cluster API Controller Manager
• KubeVirt Infrastructure Provider
• Webhook Server
• Custom Resource Definitions (CRDs)
• clusterkubevirtadm CLI tool
b. Custom Resources:
• KubeVirtCluster
• KubeVirtMachine
• KubeVirtClusterTemplate
• KubeVirtMachineTemplate
Key Relationships to Highlight
• Control flow from CLI/API to controllers
• Controller interaction with KubeVirt
• Webhook validation flow
• Resource relationship between Clusters and Machines
Specific Implementation Details
Key packages as components:
controllers/
• KubeVirtCluster Controller
• KubeVirtMachine Controller
pkg/
• infracluster/
• kubevirt/
• loadbalancer/
• ssh/
• webhookhandler/
• workloadcluster/
Important Elements
a. Control Flow:
• How the controllers reconcile the custom resources
• Webhook validation points
• Infrastructure provisioning flow
b. Resource Management:
• Relationship between templates and instances
• Where load balancing occurs
• SSH key management flow
Create distinct sections for:
Documentation Integration
Reference key documentation locations:
• API definitions (/api/v1alpha1)
• Configuration templates (/templates)
• E2E test coverage