-
Notifications
You must be signed in to change notification settings - Fork 432
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
Added support for customizing container apps in ACA via the CDK #5470
Conversation
975953d
to
275aa8d
Compare
78c9d21
to
ea1b681
Compare
313b116
to
f6ed347
Compare
- Added Aspire.Hosting.Azure.ContainerApps. This exposes 3 APIs used to configure and customize container app resources. - Added deployment target support to project and container resources in the manifest writer. This allows developers to express that a project/container gets deployed using the nested resource type. This requires a branch of azd to wire up and test.
8cb7728
to
b0520ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of nits and questions. But this is looking really good.
if (project.TryGetLastAnnotation<DeploymentTargetAnnotation>(out var deploymentTarget)) | ||
{ | ||
Writer.WriteString("type", "project.v1"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we need some sort of generalization for versioning. Probably not today with this PR. But I wonder if this pattern is going hold going forward - "If Annotation X is on this project, that means it is version Y".
src/Aspire.Hosting/ApplicationModel/DeploymentTargetAnnotation.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting.Azure.ContainerApps/AzureContanierAppsInfrastructure.cs
Show resolved
Hide resolved
src/Aspire.Hosting.Azure.ContainerApps/AzureContanierAppsInfrastructure.cs
Show resolved
Hide resolved
src/Aspire.Hosting.Azure.ContainerApps/AzureContanierAppsInfrastructure.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting.Azure.ContainerApps/AzureContanierAppsInfrastructure.cs
Outdated
Show resolved
Hide resolved
src/Aspire.Hosting.Azure.ContainerApps/AzureContanierAppsInfrastructure.cs
Outdated
Show resolved
Hide resolved
playground/AzureContainerApps/AzureContainerApps.ApiService/AzureContainerApps.ApiService.http
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this in and rock an roll on it.
- Underscore isn't supported
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Should we additionally wait for |
Yep, this is a good hunch. We could add a check for the |
Retries will probably make it more stable. |
Description
Fixes #5179
Relies on Azure/azure-dev#4286 in azd for making deployment work.
Checklist
<remarks />
and<code />
elements on your triple slash comments?Microsoft Reviewers: Open in CodeFlow