Skip to content

Commit

Permalink
🌱 Add event if host is provisioned
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
janiskemper committed Nov 6, 2023
1 parent a5e17c1 commit 5344992
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/services/baremetal/host/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 5344992

Please sign in to comment.