Skip to content

Conversation

@liwenwu-amazon
Copy link
Contributor

Issue , if available:
#70

Description of changes:
Make sure populate namespace field when handling service import object

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.


if string(*httpBackendRef.Kind) == "ServiceImport" {
is_import = true
targetgroupNamespace = "default"

Choose a reason for hiding this comment

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

not related to this change:

should the default namespace be "default" or the HTTPRoute's namespace?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, this is to build the default rule for listener. It needs to pick one target group.
In this case, if 1st one is a service import, it needs to make sure the namespace is set

@M00nF1sh
Copy link

/lgtm
/approve

@liwenwu-amazon liwenwu-amazon merged commit 96b3127 into aws:main Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants