Skip to content

Commit

Permalink
Merge pull request #1045 from syself/provision-event
Browse files Browse the repository at this point in the history
🌱 Add event if host is provisioned
  • Loading branch information
batistein authored Nov 10, 2023
2 parents e1b19d9 + 5344992 commit ce3b659
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 ce3b659

Please sign in to comment.