Skip to content

Commit f365335

Browse files
committed
tmp: add logging
1 parent 3658a58 commit f365335

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/controller/namespace/deletion/namespaced_resources_deleter.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"context"
2121
"fmt"
2222
"reflect"
23+
"strings"
2324
"sync"
2425
"time"
2526

@@ -416,6 +417,9 @@ func (d *namespacedResourcesDeleter) deleteAllContentForGroupVersionResource(
416417
namespaceDeletedAt metav1.Time) (gvrDeletionMetadata, error) {
417418
logger := klog.FromContext(ctx)
418419
logger.V(5).Info("Namespace controller - deleteAllContentForGroupVersionResource", "namespace", namespace, "resource", gvr)
420+
if strings.Contains(namespace, "nsdeletetest") {
421+
logger.V(4).Info("Namespace controller - deleteAllContentForGroupVersionResource", "namespace", namespace, "resource", gvr)
422+
}
419423

420424
// estimate how long it will take for the resource to be deleted (needed for objects that support graceful delete)
421425
estimate, err := d.estimateGracefulTermination(ctx, gvr, namespace, namespaceDeletedAt)

0 commit comments

Comments
 (0)