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

fix(appmesh): allow a Virtual Node have as a backend a Virtual Service whose provider is that Node #18265

Merged
merged 3 commits into from Jan 6, 2022

Conversation

wplucinsky
Copy link
Contributor

Addresses a circular dependency issue between Virtual Nodes and Virtual Services that works for Virtual Services created with a defined virtualServiceName and a randomly generated name.

One such example of this problem was a case where a Virtual Node had a backend that is a Virtual Service whose provider was given as the same Virtual Node. This led to the Virtual Node being dependent on the creation of the Virtual Service, and the Virtual Service being dependent on the creation of the Virtual Node.

Fixes #17322


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

@gitpod-io
Copy link

gitpod-io bot commented Jan 4, 2022

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

Looks good @wplucinsky! A few minor comments.

Additionally, the build is failing - looks like you need to update an integ test in the @aws-cdk-containers/ecs-service-extensions module:

@aws-cdk-containers/ecs-service-extensions: Verifying integ.all-service-addons.js against integ.all-service-addons.expected.json ... CHANGED.

packages/@aws-cdk/aws-appmesh/lib/shared-interfaces.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-appmesh/README.md Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-appmesh/lib/shared-interfaces.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-appmesh/test/virtual-node.test.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-appmesh/test/virtual-node.test.ts Outdated Show resolved Hide resolved
packages/@aws-cdk/aws-appmesh/test/virtual-node.test.ts Outdated Show resolved Hide resolved
@Seiya6329
Copy link
Contributor

Thanks @wplucinsky and @skinny85! These are looking great!

@mergify mergify bot dismissed skinny85’s stale review January 5, 2022 22:54

Pull request has been modified.

@Seiya6329
Copy link
Contributor

Seiya6329 commented Jan 5, 2022

@wplucinsky - This is the friendly reminder that the build is failing for the @aws-cdk-containers/ecs-service-extensions failure.

I am guessing you will need to make some changes on this file: https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk-containers/ecs-service-extensions/lib/extensions/appmesh.ts

Above was totally wrong assumption. Sorry for adding the confusion.

@skinny85 skinny85 changed the title fix(appmesh): fix circular dependency by removing virtual service name reference fix(appmesh): allow a Virtual Node have as a backend a Virtual Service whose provider is that Node Jan 6, 2022
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

Looks perfect, thanks @wplucinsky!

@mergify
Copy link
Contributor

mergify bot commented Jan 6, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: cc0fe77
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 272b6b1 into aws:master Jan 6, 2022
@mergify
Copy link
Contributor

mergify bot commented Jan 6, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
…e whose provider is that Node (aws#18265)

Addresses a circular dependency issue between Virtual Nodes and Virtual Services that works for Virtual Services created with a defined `virtualServiceName` and a randomly generated name. 

One such example of this problem was a case where a Virtual Node had a backend that is a Virtual Service whose provider was given as the same Virtual Node. This led to the Virtual Node being dependent on the creation of the Virtual Service, and the Virtual Service being dependent on the creation of the Virtual Node.

Fixes aws#17322

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-appmesh Related to AWS App Mesh
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(AppMesh): How to create two virtual service/node with bidirectional backend without circular dependencies
4 participants