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

Support nginx conf #1130

Merged
merged 23 commits into from
Nov 10, 2023
Merged

Support nginx conf #1130

merged 23 commits into from
Nov 10, 2023

Conversation

suchen-sci
Copy link
Contributor

No description provided.

@suchen-sci suchen-sci marked this pull request as draft November 3, 2023 09:47
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2023

Codecov Report

Attention: 152 lines in your changes are missing coverage. Please review.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Files Coverage Δ
cmd/client/commandv2/convert/nginx/utils.go 100.00% <100.00%> (ø)
cmd/client/commandv2/create/createhttpproxy.go 86.17% <100.00%> (-1.06%) ⬇️
pkg/filters/builder/builder.go 100.00% <100.00%> (ø)
pkg/filters/builder/requestadaptor.go 83.41% <ø> (ø)
pkg/filters/proxies/httpproxy/pool.go 82.97% <ø> (ø)
pkg/filters/proxies/httpproxy/proxy.go 93.75% <ø> (ø)
pkg/filters/proxies/httpproxy/wspool.go 57.07% <ø> (ø)
pkg/filters/proxies/loadbalance.go 84.50% <ø> (-1.21%) ⬇️
pkg/filters/proxies/server.go 100.00% <ø> (ø)
pkg/filters/proxies/serverpool.go 76.84% <ø> (ø)
... and 8 more

... and 7 files with indirect coverage changes

📢 Thoughts on this report? Let us know!

@suchen-sci suchen-sci marked this pull request as ready for review November 8, 2023 08:55
cmd/client/commandv2/convert.go Outdated Show resolved Hide resolved
@@ -0,0 +1,109 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use a more specific package name instead common which is not suggested by any Golang guide.

Ref: https://dave.cheney.net/2019/01/08/avoid-package-names-like-base-util-or-common

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, let me update it!

type Options struct {
NginxConf string
Output string
Prefix string
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefix is too general? Can we use --resource-prefix which is allowed to be empty.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated!

cmd/client/commandv2/convert/nginx/cmd.go Outdated Show resolved Hide resolved
@xxx7xxxx xxx7xxxx added this pull request to the merge queue Nov 10, 2023
Merged via the queue into easegress-io:main with commit 4a57baf Nov 10, 2023
8 checks passed
@suchen-sci suchen-sci deleted the support-nginx-conf branch November 23, 2023 08:08
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.

None yet

3 participants