* adding some logs to better understand what might be happening * only focus this PR on improve logging in finalizer handling * debug log before calling finalizers * working on finalizers * removing last todos, adding unit tests * better use SupportedFinalizers name * addressing comments * wip: fix tests and add delete error in status * chore: codegen * chore: codegen openapi * Merge remote-tracking branch 'origin/main' into provisioning-finalisers-fix-2 * update frontend client * fix: errors in testing * fix: breaking test --------- Co-authored-by: Daniele Ferru <daniele.ferru@grafana.com> Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
17 lines
529 B
Go
17 lines
529 B
Go
package repository
|
|
|
|
// RemoveOrphanResourcesFinalizer removes everything this repo created
|
|
const RemoveOrphanResourcesFinalizer = "remove-orphan-resources"
|
|
|
|
// ReleaseOrphanResourcesFinalizer removes the metadata for anything this repo created
|
|
const ReleaseOrphanResourcesFinalizer = "release-orphan-resources"
|
|
|
|
// CleanFinalizer calls the "OnDelete" function for resource
|
|
const CleanFinalizer = "cleanup"
|
|
|
|
var SupportedFinalizers = []string{
|
|
RemoveOrphanResourcesFinalizer,
|
|
ReleaseOrphanResourcesFinalizer,
|
|
CleanFinalizer,
|
|
}
|