Skip to content

Commit 0059af7

Browse files
committed
don't cleanup repos with UID annotation
Signed-off-by: Chetan Banavikalmutt <[email protected]>
1 parent a1e96d2 commit 0059af7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/e2e/fixture/fixture.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,6 @@ func CleanUp(ctx context.Context, principalClient KubeClient, managedAgentClient
315315
return err
316316
}
317317
for _, repo := range repoList.Items {
318-
if isFromSource(repo.GetAnnotations()) {
319-
continue
320-
}
321-
322318
err = EnsureDeletion(ctx, principalClient, &repo)
323319
if err != nil {
324320
return err
@@ -332,6 +328,9 @@ func CleanUp(ctx context.Context, principalClient KubeClient, managedAgentClient
332328
return err
333329
}
334330
for _, repo := range repoList.Items {
331+
if isFromSource(repo.GetAnnotations()) {
332+
continue
333+
}
335334
err = EnsureDeletion(ctx, managedAgentClient, &repo)
336335
if err != nil {
337336
return err

0 commit comments

Comments
 (0)