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

api: access log disabled should be optional #5564

Merged
merged 2 commits into from
Mar 21, 2025

Conversation

zirain
Copy link
Member

@zirain zirain commented Mar 21, 2025

fixes: #5553

@zirain zirain requested a review from a team as a code owner March 21, 2025 01:07
Signed-off-by: zirain <zirain2009@gmail.com>
Copy link

codecov bot commented Mar 21, 2025

Codecov Report

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

Project coverage is 65.21%. Comparing base (5cf6950) to head (7953c78).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
api/v1alpha1/validation/envoyproxy_validate.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5564      +/-   ##
==========================================
+ Coverage   65.19%   65.21%   +0.01%     
==========================================
  Files         213      213              
  Lines       34111    33954     -157     
==========================================
- Hits        22238    22142      -96     
+ Misses      10545    10485      -60     
+ Partials     1328     1327       -1     

☔ 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.

@arkodg arkodg changed the title api: disabled should be optional api: access log disabled should be optional Mar 21, 2025
arkodg
arkodg previously approved these changes Mar 21, 2025
@arkodg arkodg requested review from a team March 21, 2025 01:54
@@ -266,7 +266,7 @@ func (t *Translator) processAccessLog(envoyproxy *egv1a1.EnvoyProxy, resources *
if envoyproxy == nil ||
envoyproxy.Spec.Telemetry == nil ||
envoyproxy.Spec.Telemetry.AccessLog == nil ||
(!envoyproxy.Spec.Telemetry.AccessLog.Disable && len(envoyproxy.Spec.Telemetry.AccessLog.Settings) == 0) {
(!ptr.Deref(envoyproxy.Spec.Telemetry.AccessLog.Disable, false) && len(envoyproxy.Spec.Telemetry.AccessLog.Settings) == 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we add/modify a gateway api test, where this is omitted from input testdata with no change in out?

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, I didn't get your point.

Copy link
Member

@rudrakhp rudrakhp Mar 21, 2025

Choose a reason for hiding this comment

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

@zirain We don't seem to have a test for this, can we have a test with accessLog: {}. Modifying an existing test with enabled access logs should work.

Signed-off-by: zirain <zirain2009@gmail.com>
@rudrakhp
Copy link
Member

/retest

@arkodg arkodg merged commit ce8b6bd into envoyproxy:main Mar 21, 2025
28 checks passed
@zirain zirain deleted the fix-required branch March 22, 2025 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API documentation not up to date
3 participants