-
Notifications
You must be signed in to change notification settings - Fork 68
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
added ingresses-only flag #69
Conversation
|
Welcome @camperjett! |
Hi @camperjett. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
Thank you for your contribution @camperjett!
Removing the gateway objects is not exactly what we had in mind here. What we intended to do was to not translate provider-specific functionality by not running provider converters.
Maybe you can take a look at https://github.com/kubernetes-sigs/ingress2gateway#usage for some reference.
Let me know if you have any questions.
Okay. This is similar to passing empty list of providers in function |
Yes that seems about right One more thing that comes to mind, this flag should probably be mutually exclusive with the providers flag |
cmd/print.go
Outdated
@@ -182,6 +190,7 @@ if specified with --namespace.`) | |||
cmd.Flags().StringSliceVar(&pr.providers, "providers", i2gw.GetSupportedProviders(), | |||
fmt.Sprintf("If present, the tool will try to convert only resources related to the specified providers, supported values are %v", i2gw.GetSupportedProviders())) | |||
|
|||
cmd.Flags().BoolVar(&pr.ingressesOnly, "ingresses-only", false, "If present, the tool will only print the converted Ingresses.") |
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.
Should be mutually exclusive with the providers flag
b131dff
to
df5c050
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: camperjett The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
PTAL at |
What type of PR is this?
/kind feature
What this PR does / why we need it:
this adds a new flag
ingresses-only
to scope the tool to only convert resources without looking for providers CRDsWhich issue(s) this PR fixes:
Fixes #67
Does this PR introduce a user-facing change?:
/cc @LiorLieberman