-
Notifications
You must be signed in to change notification settings - Fork 166
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?
Conversation
Updated environment variable keys for apiservice bindings to use a new naming convention. Add documentation for newly created encoded parameters
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.
Pull Request Overview
This PR updates the environment variable naming convention for API service bindings to include the protocol name (http/https) in the key structure, and adds documentation for a new encoded parameters feature.
Key changes:
- Environment variable keys for apiservice bindings now include the protocol in the path (e.g.,
services__apiservice__http__0
instead ofservices__apiservice__0
) - New documentation section explaining encoded parameter resources using the
annotated.string
type with filters likeuri
- `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. | ||
|
Copilot
AI
Oct 20, 2025
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.
The documentation states that names are deduplicated but doesn't explain how deduplication works or what the resulting names would look like. Consider adding an example or brief explanation of the deduplication strategy.
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.). |
Copilot uses AI. Check for mistakes.
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
Co-authored-by: Copilot <[email protected]>
@IEvangelist just forgot that I should instead target release/13, correct? |
Updated environment variable keys for apiservice bindings to use a new naming convention. Add documentation for newly created encoded parameters
Pending code-review in corresponding PR and potential schema changes
Internal previews