-
Notifications
You must be signed in to change notification settings - Fork 360
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
fix: prevent nil pointer panic because of nonexist attribute of Access Log #1838
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1838 +/- ##
==========================================
+ Coverage 65.06% 65.36% +0.30%
==========================================
Files 86 86
Lines 12480 12526 +46
==========================================
+ Hits 8120 8188 +68
+ Misses 3838 3821 -17
+ Partials 522 517 -5
|
c7a0dde
to
974a7df
Compare
Plz run |
de55a08
to
51d3b99
Compare
imo this should be handled in
type: File has a nil , file field, this will be caught in the provider layer which reconciles the resource and the error will surface in the GatewayClass status condition
|
but @arkodg , as per the docs, it said, it is expected to disable the access log for |
oh good catch @ardikabs , I think that is a docs error. we have a field called |
raised #1850 to fix doc string discrepancy. |
hi @arkodg, I've added additional validation to error out early regarding Access Log on |
Signed-off-by: Ardika Bagus <me@ardikabs.com>
Signed-off-by: Ardika Bagus <me@ardikabs.com>
Signed-off-by: Ardika Bagus <me@ardikabs.com>
Fixes #1830
Additionally, I also added a test for JSON format type Access Log.