-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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 filter removal for http filter #37903
fix filter removal for http filter #37903
Conversation
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
@@ -512,6 +520,7 @@ func patchHTTPFilters(patchContext networking.EnvoyFilter_PatchContext, | |||
if removedFilters.Contains(filter.Name) { | |||
continue | |||
} | |||
tempArray = append(tempArray, filter) |
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 is the actual fix. Not adding to tempArray. Rest of the changes are format changes.
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.
Can you add a test? Lack of ut cause this happen.
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.
do we have any tests for this?
httpFilter *hcm.HttpFilter, | ||
) bool { |
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.
can you use the older gofumpt
to avoid noise in PRs?
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
network filter removal has test but not http filter removal. Added a test for it. PTAL. |
In response to a cherrypick label: new pull request created: #37961 |
* fix filter removal for http filter Signed-off-by: Rama Chavali <rama.rao@salesforce.com> * add test and release notes Signed-off-by: Rama Chavali <rama.rao@salesforce.com> * add test and release notes Signed-off-by: Rama Chavali <rama.rao@salesforce.com>
Found this bug in this PR #36404. Http filter removal does not work correctly.
Please check any characteristics that apply to this pull request.