From 534499206972247eeb0162a89a24feb964d06b32 Mon Sep 17 00:00:00 2001 From: janiskemper Date: Mon, 6 Nov 2023 11:09:38 +0100 Subject: [PATCH] :seedling: Add event if host is provisioned Adding an event to show that the provisioning process has been completed. This is important to find out based on events where an issue happens. Even if it is successfully provisioned, it might not be added to the cluster, as the CCM does some work after CAPH. To know more about the state, this event will be helpful. --- pkg/services/baremetal/host/host.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/services/baremetal/host/host.go b/pkg/services/baremetal/host/host.go index 7b896f8e0..a8b0fc4f4 100644 --- a/pkg/services/baremetal/host/host.go +++ b/pkg/services/baremetal/host/host.go @@ -1290,6 +1290,7 @@ func (s *Service) actionEnsureProvisioned() (ar actionResult) { } } + record.Event(s.scope.HetznerBareMetalHost, "ServerProvisioned", "server successfully provisioned") conditions.MarkTrue(s.scope.HetznerBareMetalHost, infrav1.ProvisionSucceededCondition) s.scope.HetznerBareMetalHost.ClearError() return actionComplete{}