Skip to content

Commit

Permalink
Do not output error information when removing ArmorProfile finalizers…
Browse files Browse the repository at this point in the history
… during startup
  • Loading branch information
Danny-Wei committed Nov 25, 2024
1 parent 53a2c50 commit 94fb01a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/status/api/v1/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,7 @@ func (m *StatusManager) rebuildPolicyStatuses() error {
// Try to delete the zombie ArmorProfile objects
if ap.DeletionTimestamp != nil {
m.log.Info("remove the finalizers of zombie ArmorProfile", "namespace", ap.Namespace, "name", ap.Name)
err := varmorutils.RemoveArmorProfileFinalizers(m.varmorInterface, ap.Namespace, ap.Name)
if err != nil {
m.log.Error(err, "varmorutils.RemoveArmorProfileFinalizers()")
}
varmorutils.RemoveArmorProfileFinalizers(m.varmorInterface, ap.Namespace, ap.Name)
continue
}

Expand Down

0 comments on commit 94fb01a

Please sign in to comment.