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

Add option to ExternalService to control envoy proxy arguments #43

Merged
merged 11 commits into from
Apr 5, 2024

Conversation

Cottand
Copy link
Contributor

@Cottand Cottand commented Apr 4, 2024

No description provided.

@Cottand Cottand marked this pull request as ready for review April 4, 2024 15:55
alinbalutoiu
alinbalutoiu previously approved these changes Apr 5, 2024
@@ -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] {
Copy link
Contributor

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

Copy link
Contributor Author

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 😅

@Cottand Cottand merged commit ee0a5d2 into master Apr 5, 2024
1 check passed
@Cottand Cottand deleted the nico.envoy-optional-args branch April 5, 2024 16:42
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.

3 participants