Commit Graph

3 Commits

Author SHA1 Message Date
Sunny a3d3419a1a
Handle delete before adding finalizer
In Reconcile() method, move the object deletion above add finalizer.
Finalizers can't be set when an object is being deleted.

Introduce a cacheless client in suite_test to use for testing this
change. It ensures that the Reconcile() call always operates on the
latest version of the object which has the deletion timestamp and
existing finalizer.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
2024-03-12 12:07:03 +01:00
Hidde Beydals e93bf0e8c9
Set controller package name
Set package name in the files under internal/controller to have the
base name of the directory.

This style is recommended by Go, and certain text editors/IDEs get
confused when the names don't match.

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2024-03-12 12:06:57 +01:00
Hidde Beydals f725068d20
Rename controllers to controller
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
2024-03-12 12:06:55 +01:00