Cronjob example - add fianlizer #4564
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
What do you want to happen?
I wonder why in the cronjob example there is a condition to check if cronjob contains finalizer and if so add it. See:
kubebuilder/docs/book/src/cronjob-tutorial/testdata/finalizer_example.go
Line 69 in 93a0823
However
ContainsFinalizer
seems to be overkill asAddFinalizer
function do the same check inside and it will not add the finalizer once it is already there:I would like to remove
ContainsFinalizer
as it is not needed and update documentation. Before doing so please comment if my reasoning is fine.Extra Labels
No response
The text was updated successfully, but these errors were encountered: