Skip to content

fix: dont return an err when gatewayclass is not accepted - #5524

Merged
zirain merged 2 commits into
envoyproxy:mainfrom
arkodg:no-error-bad-gwc-status
Mar 18, 2025
Merged

zirain merged 2 commits into
envoyproxy:mainfrom
arkodg:no-error-bad-gwc-status

Conversation

@arkodg

@arkodg arkodg commented Mar 17, 2025

Copy link
Copy Markdown
Contributor

this is a user generated error, we shouldnt log it as a system error, and return with an error

@arkodg
arkodg requested a review from a team as a code owner March 17, 2025 19:30
@arkodg arkodg changed the title bug: dont return an err when gatewayclass is not accepted fix: dont return an err when gatewayclass is not accepted Mar 17, 2025
@codecov

codecov Bot commented Mar 17, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 65.19%. Comparing base (260b3f6) to head (d645767).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/provider/kubernetes/controller.go 0.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5524      +/-   ##
==========================================
- Coverage   65.20%   65.19%   -0.01%     
==========================================
  Files         213      213              
  Lines       34033    34032       -1     
==========================================
- Hits        22190    22188       -2     
- Misses      10515    10516       +1     
  Partials     1328     1328              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Arko Dasgupta added 2 commits March 18, 2025 19:08
this is a user generated error, we shouldnt log it as
a system error, and return with an error

Signed-off-by: Arko Dasgupta <[email protected]>
Signed-off-by: Arko Dasgupta <[email protected]>
@zirain
zirain force-pushed the no-error-bad-gwc-status branch from 81ef606 to d645767 Compare March 18, 2025 11:08
@zirain
zirain merged commit 51e87ca into envoyproxy:main Mar 18, 2025
guydc pushed a commit to guydc/gateway that referenced this pull request Mar 21, 2025
…#5524)

* bug: dont return an err when gatewayclass is not accepted

this is a user generated error, we shouldnt log it as
a system error, and return with an error

Signed-off-by: Arko Dasgupta <[email protected]>

* release notes

Signed-off-by: Arko Dasgupta <[email protected]>

---------

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit 51e87ca)
Signed-off-by: Guy Daich <[email protected]>
zhaohuabing pushed a commit to zhaohuabing/gateway that referenced this pull request Mar 22, 2025
…#5524)

* bug: dont return an err when gatewayclass is not accepted

this is a user generated error, we shouldnt log it as
a system error, and return with an error

Signed-off-by: Arko Dasgupta <[email protected]>

* release notes

Signed-off-by: Arko Dasgupta <[email protected]>

---------

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit 51e87ca)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
guydc added a commit that referenced this pull request Mar 24, 2025
* load BackendTLSPolicy in standalone mode (#5431)

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit 4d914ae)
Signed-off-by: Guy Daich <[email protected]>

* Wasm: cache Wasm OCI image permission check results (#5358)

* add TTL for wasm permission check

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix test

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* change

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* refresh the cache

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* purge the cache

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* refactor

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* on retry on retriable errors

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* add release note

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

---------

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 672de8a)
Signed-off-by: Guy Daich <[email protected]>

* Load EnvoyExtensionPolicy in standalone mode (#5460)

* load EnvoyExtensionPolicy in standalone mode

Signed-off-by: Takeshi Yoneda <[email protected]>

* more

Signed-off-by: Takeshi Yoneda <[email protected]>

* release note

Signed-off-by: Takeshi Yoneda <[email protected]>

* review: use a valid target name instead of myapp

Signed-off-by: Takeshi Yoneda <[email protected]>

* gen

Signed-off-by: Takeshi Yoneda <[email protected]>

---------

Signed-off-by: Takeshi Yoneda <[email protected]>
(cherry picked from commit 4be098d)
Signed-off-by: Guy Daich <[email protected]>

* fix: check for mirror backendRef in httproute index (#5497)

* check for mirror backendRef

Signed-off-by: mark winter <[email protected]>
(cherry picked from commit 72b72c4)
Signed-off-by: Guy Daich <[email protected]>

* fix: dont return an err when gatewayclass is not accepted (#5524)

* bug: dont return an err when gatewayclass is not accepted

this is a user generated error, we shouldnt log it as
a system error, and return with an error

Signed-off-by: Arko Dasgupta <[email protected]>

* release notes

Signed-off-by: Arko Dasgupta <[email protected]>

---------

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit 51e87ca)
Signed-off-by: Guy Daich <[email protected]>

* fix: host header should not be allowed to modify (#5533)

* host header is not allowed to be modified

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* address comment

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

---------

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 54efa34)
Signed-off-by: Guy Daich <[email protected]>

* fix: retrigger reconciliation when backendRef of type ServiceImport is updated (#5461)

* fix: retrigger reconilation when backendRef of type ServiceImport is updated

Signed-off-by: Teju Nareddy <[email protected]>
(cherry picked from commit e2f8978)
Signed-off-by: Guy Daich <[email protected]>

* pin envoy and ratelimit

Signed-off-by: Guy Daich <[email protected]>

* fix: otel sink json access logging without text field (#5498)

* fix otel sink json access logging without text field

Signed-off-by: Tomi Juntunen <[email protected]>

* use json format as default when format or type is not set

Signed-off-by: Tomi Juntunen <[email protected]>

* set formatters only if the slice of formatters is not empty

Signed-off-by: Tomi Juntunen <[email protected]>

---------

Signed-off-by: Tomi Juntunen <[email protected]>
Co-authored-by: Arko Dasgupta <[email protected]>
(cherry picked from commit cb3ffd2)
Signed-off-by: Guy Daich <[email protected]>

* [release/v1.3] v1.3.2 release notes (#5584)

v1.3.2 release notes

Signed-off-by: Guy Daich <[email protected]>

---------

Signed-off-by: Arko Dasgupta <[email protected]>
Signed-off-by: Guy Daich <[email protected]>
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: mark winter <[email protected]>
Signed-off-by: Teju Nareddy <[email protected]>
Signed-off-by: Tomi Juntunen <[email protected]>
Co-authored-by: Arko Dasgupta <[email protected]>
Co-authored-by: Huabing (Robin) Zhao <[email protected]>
Co-authored-by: Takeshi Yoneda <[email protected]>
Co-authored-by: Mark Winter <[email protected]>
Co-authored-by: Teju Nareddy <[email protected]>
Co-authored-by: Tomi Juntunen <[email protected]>
arkodg added a commit that referenced this pull request Mar 25, 2025
* bump envoy to v1.32.4

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: host header should not be allowed to modify (#5533)

* host header is not allowed to be modified

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* address comment

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

---------

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 54efa34)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* add release note

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* bump ratelimit to 0141a24

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* Wasm: cache Wasm OCI image permission check results (#5358)

* add TTL for wasm permission check

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix test

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* change

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* refresh the cache

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* purge the cache

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* refactor

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* on retry on retriable errors

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* add release note

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

---------

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
(cherry picked from commit 672de8a)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* load BackendTLSPolicy in standalone mode (#5431)

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit 4d914ae)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: check for mirror backendRef in httproute index (#5497)

* check for mirror backendRef

Signed-off-by: mark winter <[email protected]>
(cherry picked from commit 72b72c4)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: dont return an err when gatewayclass is not accepted (#5524)

* bug: dont return an err when gatewayclass is not accepted

this is a user generated error, we shouldnt log it as
a system error, and return with an error

Signed-off-by: Arko Dasgupta <[email protected]>

* release notes

Signed-off-by: Arko Dasgupta <[email protected]>

---------

Signed-off-by: Arko Dasgupta <[email protected]>
(cherry picked from commit 51e87ca)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* update release note

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* update reatelimit

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix gen

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* Load EnvoyExtensionPolicy in standalone mode (#5460)

* load EnvoyExtensionPolicy in standalone mode

Signed-off-by: Takeshi Yoneda <[email protected]>

* more

Signed-off-by: Takeshi Yoneda <[email protected]>

* release note

Signed-off-by: Takeshi Yoneda <[email protected]>

* review: use a valid target name instead of myapp

Signed-off-by: Takeshi Yoneda <[email protected]>

* gen

Signed-off-by: Takeshi Yoneda <[email protected]>

---------

Signed-off-by: Takeshi Yoneda <[email protected]>
(cherry picked from commit 4be098d)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* add security update to release note

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* fix: otel sink json access logging without text field (#5498)

* fix otel sink json access logging without text field

Signed-off-by: Tomi Juntunen <[email protected]>

* use json format as default when format or type is not set

Signed-off-by: Tomi Juntunen <[email protected]>

* set formatters only if the slice of formatters is not empty

Signed-off-by: Tomi Juntunen <[email protected]>

---------

Signed-off-by: Tomi Juntunen <[email protected]>
Co-authored-by: Arko Dasgupta <[email protected]>
(cherry picked from commit cb3ffd2)
Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* update release date

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

* update release date

Signed-off-by: Huabing (Robin) Zhao <[email protected]>

---------

Signed-off-by: Huabing (Robin) Zhao <[email protected]>
Signed-off-by: Arko Dasgupta <[email protected]>
Signed-off-by: mark winter <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Tomi Juntunen <[email protected]>
Co-authored-by: Arko Dasgupta <[email protected]>
Co-authored-by: Mark Winter <[email protected]>
Co-authored-by: Takeshi Yoneda <[email protected]>
Co-authored-by: Tomi Juntunen <[email protected]>
@arkodg
arkodg deleted the no-error-bad-gwc-status branch March 26, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants