Skip to content

Commit cd38df7

Browse files
committed
Delegate HA enable/disable to kvm-ha-service
The kvm-ha-service now owns the HA lifecycle for hypervisors, including setting spec.maintenance=ha and the ConditionTypeHaEnabled and setting ConditionTypeHypervisorDisabled status condition after the compute service got disabled. Changes: - Delete HypervisorInstanceHaController and its tests - Remove enableInstanceHA, disableInstanceHA, updateInstanceHA, InstanceHaUrl from utils.go - Exclude MaintenanceHA from the maintenance controller's compute service disable logic, as the ha-service handles that case
1 parent 947ff85 commit cd38df7

5 files changed

Lines changed: 2 additions & 594 deletions

File tree

cmd/main.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,6 @@ func main() {
256256
setupLog.Error(err, "unable to create controller", "controller", "Eviction")
257257
os.Exit(1)
258258
}
259-
if err = (&controller.HypervisorInstanceHaController{
260-
Client: mgr.GetClient(),
261-
Scheme: mgr.GetScheme(),
262-
}).SetupWithManager(mgr); err != nil {
263-
setupLog.Error(err, "unable to create controller", "controller", "HypervisorInstanceHa")
264-
os.Exit(1)
265-
}
266259

267260
if err = (&controller.HypervisorOffboardingReconciler{
268261
Client: mgr.GetClient(),

internal/controller/hypervisor_instance_ha_controller.go

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)