mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Merge pull request #49107 from edevil/try_remove_old_log
Automatic merge from submit-queue (batch tested with PRs 49107, 47177, 49234, 49224, 49227) Make sure the previous symlink file is deleted before trying to create a new one **What this PR does / why we need it**: It deletes possibly existing symlinks to container log files. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # fixes #49105 **Special notes for your reviewer**: **Release note**: ```release-note ```
This commit is contained in:
@@ -218,9 +218,10 @@ func TestContainerLogPath(t *testing.T) {
|
||||
assert.NoError(t, err)
|
||||
|
||||
// Verify container log symlink deletion
|
||||
// symlink is also tentatively deleted at startup
|
||||
err = ds.RemoveContainer(id)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, fakeOS.Removes, []string{kubeletContainerLogPath})
|
||||
assert.Equal(t, []string{kubeletContainerLogPath, kubeletContainerLogPath}, fakeOS.Removes)
|
||||
}
|
||||
|
||||
// TestContainerCreationConflict tests the logic to work around docker container
|
||||
|
||||
Reference in New Issue
Block a user