-
Notifications
You must be signed in to change notification settings - Fork 168
Introduce encoded parameters #5317
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -110,8 +110,8 @@ Publishing the manifest from the default starter template for Aspire produces th | |||||||
| "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EXCEPTION_LOG_ATTRIBUTES": "true", | ||||||||
| "OTEL_DOTNET_EXPERIMENTAL_OTLP_EMIT_EVENT_LOG_ATTRIBUTES": "true", | ||||||||
| "ConnectionStrings__cache": "{cache.connectionString}", | ||||||||
| "services__apiservice__0": "{apiservice.bindings.http.url}", | ||||||||
| "services__apiservice__1": "{apiservice.bindings.https.url}" | ||||||||
| "services__apiservice__http__0": "{apiservice.bindings.http.url}", | ||||||||
| "services__apiservice__https__0": "{apiservice.bindings.https.url}" | ||||||||
| }, | ||||||||
| "bindings": { | ||||||||
| "http": { | ||||||||
|
|
@@ -142,8 +142,8 @@ This dependency is known because the environment variables for the _webfrontend_ | |||||||
| "env": { | ||||||||
| // ... other environment variables omitted for clarity | ||||||||
| "ConnectionStrings__cache": "{cache.connectionString}", | ||||||||
| "services__apiservice__0": "{apiservice.bindings.http.url}", | ||||||||
| "services__apiservice__1": "{apiservice.bindings.https.url}" | ||||||||
| "services__apiservice__http__0": "{apiservice.bindings.http.url}", | ||||||||
| "services__apiservice__https__0": "{apiservice.bindings.https.url}" | ||||||||
| }, | ||||||||
| ``` | ||||||||
|
|
||||||||
|
|
@@ -228,6 +228,25 @@ The connection string placeholder references the `password` input parameter from | |||||||
|
|
||||||||
| The preceding JSON snippet shows the `inputs` field for a resource that has a `connectionString` field. The `password` input parameter is a string type and is marked as a secret. The `default` field is used to specify a default value for the input parameter. In this case, the default value is generated using the `generate` field, with random string of a minimum length. | ||||||||
|
|
||||||||
| When a parameter is using a formatter (for example `uri`), the manifest contains an additional resource that represents the formatted projection. | ||||||||
|
|
||||||||
| - The resource type is `"annotated.string"`. | ||||||||
| - `value` references the raw parameter value (`{parameter-name.value}`). | ||||||||
| - `filter` names the formatter (e.g., `"uri"`, ...). | ||||||||
| - The resource name is derived from the parameter name and format (`{parameter}-{format}-encoded`). Names are deduplicated if multiple projections share the same base. | ||||||||
|
|
||||||||
|
||||||||
| For example, if multiple projections would result in the same base name, a numeric suffix is appended to ensure uniqueness (for example, `redis-password-uri-encoded`, `redis-password-uri-encoded-1`, `redis-password-uri-encoded-2`, etc.). |
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.
@copilot update to mention it's using {format} to deduplicate
Uh oh!
There was an error while loading. Please reload this page.