Skip to content
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

Implement REPLACE operation for EnvoyFilter patch #27426

Merged
merged 3 commits into from
Sep 21, 2020

Conversation

zhaohuabing
Copy link
Member

@zhaohuabing zhaohuabing commented Sep 19, 2020

Add a "REPLACE" operation for EnvoyFilter patch. This operation only supports Network filter and HTTP filter.

This is the implementation of issue #27425

Signed-off-by: huabing zhao zhaohuabing@gmail.com

[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[*] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure

Pull Request Attributes

Please check any characteristics that apply to this pull request.

[ ] Does not have any changes that may affect Istio users.

@zhaohuabing zhaohuabing requested a review from a team as a code owner September 19, 2020 13:56
@googlebot googlebot added the cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. label Sep 19, 2020
@istio-testing istio-testing added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 19, 2020
@zhaohuabing zhaohuabing changed the title Implement REPLACE operation for Envoyfilter patch Implement REPLACE operation for EnvoyFilter patch Sep 19, 2020
@zhaohuabing zhaohuabing requested review from a team as code owners September 19, 2020 14:15
@zhaohuabing
Copy link
Member Author

/retest

Add a "REPLACE" operation for EnvoyFilter patch. This operation only supports Network filter and HTTP filter.

This is the implementation of issue istio#27425

Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
Copy link
Contributor

@mandarjog mandarjog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this.

Add debug info when no matching filter found.
Add negative test.
Change test case name to indicate http filter.

Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
Copy link
Contributor

@mandarjog mandarjog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@istio-testing istio-testing merged commit 61e31f2 into istio:master Sep 21, 2020
- 27425
releaseNotes:
- |
**Added** "REPLACE" operation for EnvoyFilter. "REPLACE" opration can replace contents of a named filter with new contents. It is only valid for HTTP_FILTER and NETWORK_FILTER.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
**Added** "REPLACE" operation for EnvoyFilter. "REPLACE" opration can replace contents of a named filter with new contents. It is only valid for HTTP_FILTER and NETWORK_FILTER.
**Added** "REPLACE" operation for EnvoyFilter. "REPLACE" operation can replace contents of a named filter with new contents. It is only valid for HTTP_FILTER and NETWORK_FILTER.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the typo, how could I fix it? This has already been merged.

@howardjohn
Copy link
Member

howardjohn commented Sep 22, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Set by the Google CLA bot to indicate the author of a PR has signed the Google CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants