Some updates

This commit is contained in:
2024-04-05 17:40:20 +02:00
parent 1993d91624
commit 8305425d47
5 changed files with 72 additions and 4 deletions

View File

@ -52,3 +52,10 @@ func WaitUntilCreated(ctx context.Context, client client.Client, obj client.Obje
}
return nil
}
func Delete(ctx context.Context, client client.Client, obj client.Object, wait bool) error {
if err := client.Delete(ctx, obj); err != nil {
return err
}
return nil
}