-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add option to ExternalService to control envoy proxy arguments #43
Conversation
@@ -252,4 +254,19 @@ func deployment(es *egressv1.ExternalService, configHash string) *appsv1.Deploym | |||
}, | |||
}, | |||
} | |||
|
|||
defaultArgs := []string{"-c", "/etc/envoy/envoy.yaml"} | |||
if validLogLevels[es.Spec.EnvoyLogLevel] { |
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.
you could also use slices.Contains
https://pkg.go.dev/slices#Contains
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.
TIL! thank you
with Go I thought I'd need to do a for loop to check that sort of thing 😅
No description provided.