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

Add IResourceWithServiceDiscovery interface to PythonProjectResource. #5024

Merged

Conversation

mitchdenny
Copy link
Member

@mitchdenny mitchdenny commented Jul 23, 2024

Fixes #5019

We were just missing the marker interface. This will result in the service discovery variables be populated with WithRefrence(...) is used. It also unlocks WithEnvironment(string, EndpointReference) which is arguably more useful in these polyglot scenarios.

Microsoft Reviewers: Open in CodeFlow

@mitchdenny mitchdenny self-assigned this Jul 23, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Jul 23, 2024
@mitchdenny mitchdenny added this to the 8.1 milestone Jul 23, 2024
@mitchdenny
Copy link
Member Author

/backport to release/8.1

Copy link
Contributor

Started backporting to release/8.1: https://github.com/dotnet/aspire/actions/runs/10053595404

Copy link
Member

@maddymontaquila maddymontaquila left a comment

Choose a reason for hiding this comment

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

love it thank you!!!

@mitchdenny
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mitchdenny mitchdenny merged commit 0e56769 into main Jul 23, 2024
9 checks passed
@mitchdenny mitchdenny deleted the mitchdenny/add-service-discovery-interface-to-python branch July 23, 2024 14:23
@eerhardt
Copy link
Member

Are there any tests we could write to ensure this works end-to-end?

@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[8.1] using WithReference() with a python app fails
4 participants