-
Notifications
You must be signed in to change notification settings - Fork 557
translator: move EnvoyProxy validation out of Provider #7009
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #7009 +/- ##
==========================================
- Coverage 71.05% 71.03% -0.03%
==========================================
Files 227 227
Lines 40441 40495 +54
==========================================
+ Hits 28736 28765 +29
- Misses 10009 10028 +19
- Partials 1696 1702 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
LGTM with one question
} | ||
case egv1a1.ProxyAccessLogFormatTypeJSON: | ||
if setting.Format.JSON == nil { | ||
err := fmt.Errorf("unable to configure access log when using JSON format but \"json\" field being empty") |
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.
Curious why this check is removed.
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.
EG use JSON as default now, and nil means use default JSON output.
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.
👍🏻
f40b7ec
to
adcc255
Compare
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
Signed-off-by: zirain <[email protected]>
|
||
r.log.Error(err, fmt.Sprintf("failed process TLS SecretRef for EnvoyProxy for gatewayClass %s", managedGC.Name)) | ||
gc := status.SetGatewayClassAccepted( | ||
managedGC.DeepCopy(), |
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.
I didn't understand why we do deepcopy here, we post GC with old status to gatewayapi layer in the past.
cc @arkodg
Signed-off-by: zirain <[email protected]>
What type of PR is this?
xref: #6752