fix: correct 'occured' typo in finalizer error message

This commit is contained in:
Sai Asish Y 2026-05-10 18:13:09 -07:00
parent 618ac156e6
commit 32d4fd19f4
1 changed files with 1 additions and 1 deletions

View File

@ -1293,7 +1293,7 @@ func (c *Cluster) Delete() error {
// If we are done deleting our various resources we remove the finalizer to let K8S finally delete the Postgres CR // If we are done deleting our various resources we remove the finalizer to let K8S finally delete the Postgres CR
if anyErrors { if anyErrors {
c.eventRecorder.Event(c.GetReference(), v1.EventTypeWarning, "Delete", "some resources could be successfully deleted yet") c.eventRecorder.Event(c.GetReference(), v1.EventTypeWarning, "Delete", "some resources could be successfully deleted yet")
return fmt.Errorf("some error(s) occured when deleting resources, NOT removing finalizer yet") return fmt.Errorf("some error(s) occurred when deleting resources, NOT removing finalizer yet")
} }
if err := c.removeFinalizer(); err != nil { if err := c.removeFinalizer(); err != nil {
return fmt.Errorf("done cleaning up, but error when removing finalizer: %v", err) return fmt.Errorf("done cleaning up, but error when removing finalizer: %v", err)