Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

envoy/cds: add nil check for ConnectionSettings #4821

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

shashankram
Copy link
Member

Description:
With the addition of rate limiting to the
UpstreamTrafficSetting spec, it is possible
for the UpstreamTrafficSetting object to be non
nil while having its ConnectionSettings as nil.
Add nil check so the code doesn't panic when
ConnectionSettings is nil and RateLimit is configured.

Testing done:
Unit test

Affected area:

Functional Area
Control Plane [X]

Please answer the following questions with yes/no.

  1. Does this change contain code from or inspired by another project? no

    • Did you notify the maintainers and provide attribution?
  2. Is this a breaking change? no

  3. Has documentation corresponding to this change been updated in the osm-docs repo (if applicable)? n/a

With the addition of rate limiting to the
UpstreamTrafficSetting spec, it is possible
for the UpstreamTrafficSetting object to be non
nil while having its ConnectionSettings as nil.
Add nil check so the code doesn't panic when
ConnectionSettings is nil and RateLimit is configured.

Signed-off-by: Shashank Ram <shashr2204@gmail.com>
@trstringer trstringer merged commit a5b3716 into openservicemesh:main Jun 15, 2022
@shashankram shashankram deleted the fix-cds branch June 15, 2022 18:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants