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

Use Virtual Service name for Virtual Router #72

Merged
merged 1 commit into from
Sep 20, 2019
Merged

Use Virtual Service name for Virtual Router #72

merged 1 commit into from
Sep 20, 2019

Conversation

bcelenza
Copy link
Contributor

Issue #, if available: #69

Description of changes:

Fix for the behavior that should default to the Virtual Service's name if the Virtual Router is not given an explicit name.

Testing:

Tested via make example. I noticed the app mesh object does not have unit tests. Is the appropriate place here?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@nckturner
Copy link
Contributor

I noticed the app mesh object does not have unit tests.

Are you referring to the mesh struct here?

@bcelenza
Copy link
Contributor Author

I noticed the app mesh object does not have unit tests.

Are you referring to the mesh struct here?

Yes, all structs defined in appmesh.go

@kiranmeduri
Copy link
Collaborator

@bcelenza
Copy link
Contributor Author

bcelenza commented Sep 17, 2019

Isn't this handled already @ https://github.com/aws/aws-app-mesh-controller-for-k8s/blob/master/pkg/controller/virtualservice.go#L45. May be a bug in that logic there as https://github.com/aws/aws-app-mesh-controller-for-k8s/blob/master/pkg/controller/virtualservice.go#L296 should handle it appropriately.

Wasn't aware of this logic. The logic to dynamically name appears duplicated. Is virtualservice.go the right place for it? Seems like it holds the higher level abstraction and is the right place.

In fact, this is probably why it's broken. The logic in appmesh.go is probably overwriting whatever value was set in virtualservice.go. Seeing if that's the case.

Fix for the behavior that should default to the Virtual Service's name
if the Virtual Router is not given an explicit name.
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