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

Controller gets stuck in a crash loop #314

Merged
merged 3 commits into from
Jul 16, 2020

Conversation

achevuru
Copy link
Contributor

Issue #, if available:
#305
Description of changes:

AWSCloudMap config of VirtualNode Spec is made immutable. Controller will allow ServiceDiscovery to be dynamically changed from DNS to CloudMap but not vice versa.

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

@achevuru achevuru requested review from fawadkhaliq and M00nF1sh July 15, 2020 07:38
ServiceDiscovery: &appmesh.ServiceDiscovery{
AWSCloudMap: &appmesh.AWSCloudMapServiceDiscovery{
NamespaceName: "cloudmap-ns",
ServiceName: "cloudmap-svc",

Choose a reason for hiding this comment

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

Can we please also add coverage on the following:

  • DNS<->CloudMap (should fail)
  • DNS<->DNS (should pass)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CloudMap->DNS is covered where it blocks if anything under awsCloudMap is changed as part of" VirtualNode field awsCloudMap changed". We will allow DNS->CloudMap however. Will add a test case for DNS->DNS.

Choose a reason for hiding this comment

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

We will allow DNS->CloudMap however

I don't see how DNS->CloudMap is allowed here. Looking at the diff in virtualnode_validator.go, it'll block all: DNS->CloudMap, CloudMap->DNS and CloudMap->CloudMap(new)

Let's please also add a test for DNS->CloudMap as per the expected behavior

Copy link

@fawadkhaliq fawadkhaliq left a comment

Choose a reason for hiding this comment

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

/lgtm

@fawadkhaliq fawadkhaliq merged commit 675cef2 into aws:master Jul 16, 2020
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.

2 participants