-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Manual backport 1.15.x of Avoid panic applying TProxy Envoy extensions #17539
Manual backport 1.15.x of Avoid panic applying TProxy Envoy extensions #17539
Conversation
3876ef3
to
2cec60e
Compare
@@ -112,89 +112,12 @@ func (b *BasicEnvoyExtender) Extend(resources *xdscommon.IndexedResources, confi | |||
} |
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.
Changes in this file are equivalent to the original PR but slightly different due to refactors that did not require backporting
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.
👍
2cec60e
to
acb24c0
Compare
backport of commit 8c30455
acb24c0
to
be7cb47
Compare
func (b *BasicEnvoyExtender) patchListener(config *RuntimeConfig, l *envoy_listener_v3.Listener) (proto.Message, bool, error) { | ||
func (b *BasicEnvoyExtender) patchSupportedListenerFilterChains(config *RuntimeConfig, l *envoy_listener_v3.Listener) (proto.Message, bool, error) { | ||
switch config.Kind { | ||
case api.ServiceKindTerminatingGateway: | ||
return b.patchTerminatingGatewayListener(config, l) | ||
case api.ServiceKindConnectProxy: | ||
return b.patchConnectProxyListener(config, l) | ||
case api.ServiceKindTerminatingGateway, api.ServiceKindConnectProxy: | ||
return b.patchListenerFilterChains(config, l) | ||
} | ||
return l, false, nil | ||
} |
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.
After double checking the original change that introduced this switch and the matching one above, I restored it to align with that and reduce changes here (I'd originally thought it was more copy-pasta). This could prevent a future bug if we were to support more proxy types for extensions in general without aligning that support with listeners specifically.
No other changes since the last review. I've also re-tested by hand w/ this change.
backport of commit 8c30455
Description
Manual backport of #17537.
Resolves automated backport PR #17542.