-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: check ephemeral metadata is set before delete #4089
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jordan Rodgers <[email protected]>
e89d0ad
to
3f8a37c
Compare
Published E2E Test Results 4 files 4 suites 3h 8m 36s ⏱️ For more details on these failures, see this check. Results for commit 68b5f6c. ♻️ This comment has been updated with latest results. |
Published Unit Test Results2 291 tests 2 291 ✅ 2m 59s ⏱️ Results for commit 68b5f6c. ♻️ This comment has been updated with latest results. |
Signed-off-by: Jordan Rodgers <[email protected]>
Quality Gate passedIssues Measures |
@@ -1367,10 +1376,8 @@ func TestSyncEphemeralPodMetadata(t *testing.T) { | |||
"do-not": "touch", | |||
}, | |||
} | |||
assert.True(t, modified) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This same condition is being checked already right above this
We're seeing issues with rollout sync failing due to errors like this:
It seems that we're trying to delete the metadata on every pod every sync, even if the pod doesn't have the keys. This means that in environments with high pod churn, this loop can get stuck for a very long time. This simply adds a check to make sure the key is actually present in the metadata before we delete it and mark it as modified.
Before the fix with the new test:
After the fix with the new test:
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.