Skip to content

Commit

Permalink
chore: add addServer and deleteServer Event recording in OBZone
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfooI committed Nov 9, 2023
1 parent e523d2b commit 8e55a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/resource/obzone_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func (m *OBZoneManager) CreateOBServer() error {
m.Logger.Error(err, "create observer failed", "server", serverName)
return errors.Wrap(err, "create observer")
}
m.Recorder.Event(m.OBZone, "CreateObServer", "CreateObserver", fmt.Sprintf("Create observer %s", serverName))
}
return nil
}
Expand All @@ -157,6 +158,7 @@ func (m *OBZoneManager) DeleteOBServer() error {
if err != nil {
return errors.Wrapf(err, "Delete observer %s failed", observer.Name)
}
m.Recorder.Event(m.OBZone, "DeleteObServer", "DeleteObserver", fmt.Sprintf("Delete observer %+v", observer))
continue
}
observerCount++
Expand Down

0 comments on commit 8e55a12

Please sign in to comment.