We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0e73a5 commit 97c91afCopy full SHA for 97c91af
1 file changed
pkg/services/baremetal/host/host.go
@@ -2259,6 +2259,12 @@ func (s *Service) actionProvisioned(ctx context.Context) actionResult {
2259
2260
// next: None
2261
func (s *Service) actionDeprovisioning(ctx context.Context) actionResult {
2262
+ // remove the reboot annotation if present.
2263
+ s.scope.HetznerBareMetalHost.ClearRebootAnnotations()
2264
+
2265
+ // remove the RebootSucceeded condition if present.
2266
+ v1beta1conditions.Delete(s.scope.HetznerBareMetalHost, infrav1.RebootSucceededCondition)
2267
2268
// Update server name via RobotAPI, strip "bm-" from the desired hostname.
2269
// Example: If the hostname is "bm-abc-1-2356799" it should be renamed to "abc-1-2356799".
2270
if _, err := s.scope.RobotClient.SetBMServerName(
0 commit comments