Skip to content

Commit d87050d

Browse files
IshwarKanseclaude
andcommitted
fix: filter by container name in restart detection loop
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8bcce30 commit d87050d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/e2e/zz_tls_profile_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ func waitForOperatorContainerRestart(t *testing.T, baselineRestarts int32) {
359359
}
360360
// Detect container restart within the same pod.
361361
for _, cs := range p.Status.ContainerStatuses {
362-
if cs.RestartCount > baselineRestarts {
362+
if cs.Name == operatorContainerName && cs.RestartCount > baselineRestarts {
363363
t.Logf("operator container restarted: restart count %d -> %d", baselineRestarts, cs.RestartCount)
364364
return true, nil
365365
}

0 commit comments

Comments
 (0)