-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
args
on project.v0
and dockerfile.v0
resources
We allow binding expressions to refer to properties of other resources, but we fail if any of these values are secrets (since ACA has no way to treat these as ACA or KeyVault secrets and reference them). If we detect this case, we fail and encourage the user to pass these values via environment variaibles. Fixes #3678
- Loading branch information
Showing
13 changed files
with
315 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
cli/azd/pkg/apphost/testdata/TestAspireArgsGeneration.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
location: {{ .Env.AZURE_LOCATION }} | ||
identity: | ||
type: UserAssigned | ||
userAssignedIdentities: | ||
? "{{ .Env.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID }}" | ||
: {} | ||
properties: | ||
environmentId: {{ .Env.AZURE_CONTAINER_APPS_ENVIRONMENT_ID }} | ||
configuration: | ||
activeRevisionsMode: single | ||
ingress: | ||
external: false | ||
targetPort: {{ targetPortOrDefault 8080 }} | ||
transport: http | ||
allowInsecure: true | ||
registries: | ||
- server: {{ .Env.AZURE_CONTAINER_REGISTRY_ENDPOINT }} | ||
identity: {{ .Env.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID }} | ||
template: | ||
containers: | ||
- image: {{ .Image }} | ||
name: apiservice | ||
args: | ||
- --supports-args | ||
- "true" | ||
- --port | ||
- "12345" | ||
env: | ||
- name: AZURE_CLIENT_ID | ||
value: {{ .Env.MANAGED_IDENTITY_CLIENT_ID }} | ||
- name: ASPNETCORE_FORWARDEDHEADERS_ENABLED | ||
value: "true" | ||
- name: OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EVENT_LOG_ATTRIBUTES | ||
value: "true" | ||
- name: OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES | ||
value: "true" | ||
- name: OTEL_DOTNET_EXPERIMENTAL_OTLP_RETRY | ||
value: in_memory | ||
scale: | ||
minReplicas: 1 | ||
tags: | ||
azd-service-name: apiservice | ||
aspire-resource-name: apiservice | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.