-
Notifications
You must be signed in to change notification settings - Fork 52
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 non-default namespaced gateway #217
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pull Request Test Coverage Report for Build 4748041552
💛 - Coveralls |
liwenwu-amazon
changed the title
(working-in-progress) support non-default namespaced gateway
Support non-default namespaced gateway
Apr 18, 2023
zmingxi
reviewed
Apr 19, 2023
controllers/gateway_controller.go
Outdated
@@ -123,12 +123,14 @@ func (r *GatewayReconciler) reconcile(ctx context.Context, req ctrl.Request) err | |||
return client.IgnoreNotFound(err) | |||
} | |||
|
|||
/* TODO, allow non-default namespaced gateway | |||
if !r.isDefaultNameSpace(gw.Namespace) { |
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.
Do we want to remove these comment in code?
zmingxi
approved these changes
Apr 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
feature
Which issue does this PR fix:
#205
What does this PR do / Why do we need it:
This PR allows user to define K8S
gateway
object in non-default namespace.The controller maps K8S
gateway
object in non-default namespace to a VPC lattice service network which has the same name as K8Sgateway
name.For example
The controller will create one VPC lattice service network called
my-hotel
The controller will delete the VPC lattice service network
my-hotel
after K8Smy-hotel
objects are deleted in bothdefault
andgw-infra-1
namespacesIf an issue # is not available please add repro steps and logs from aws-gateway-controller showing the issue:
Testing done on this change:
manual e2e tests
*. create K8S gateway
my-hotel
in default namespace firstmy-hotel
in namespacegw-infra-1
my-hotel
gateway and HTTPRoute in default namespace, and verify the traffic still works forgw-infra-1
namespacemy-hotel
ingw-infra-1
firstmy-hotel
gateway in default namespace, where there is already a K8Smy-hotel
gateway in non-default namespacemy-hotel
ingw-infra-1
namespace and verify traffic still works for default namespaceAutomation added to e2e:
Will this PR introduce any new dependencies?:
no
Will this break upgrades or downgrades. Has updating a running cluster been tested?:
Does this PR introduce any user-facing change?:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.