Skip to content

Fixes #1205 - updating bicep files for new container environment vari…#1207

Merged
willtsai merged 5 commits into
radius-project:edgefrom
superbeeny:superbeeny/secrets
Sep 10, 2024
Merged

Fixes #1205 - updating bicep files for new container environment vari…#1207
willtsai merged 5 commits into
radius-project:edgefrom
superbeeny:superbeeny/secrets

Conversation

@superbeeny
Copy link
Copy Markdown
Contributor

…able schema

Thank you for helping make the Radius documentation better!

Please follow this checklist before submitting:

  • Read the contribution guide
  • Commands include options for Linux, MacOS, and Windows within codetabs
  • New file and folder names are globally unique
  • Page references use shortcodes instead of markdown or URL links
  • Images use HTML style and have alternative text
  • Places where multiple code/command options are given have codetabs

In addition, please fill out the following to help reviewers understand this pull request:

Description

Updating bicep files with new container environment variables schema

Issue reference

Fixes: #1205

…vironment variable schema

Signed-off-by: Nick Beenham <1985327+superbeeny@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@willtsai willtsai left a comment

Choose a reason for hiding this comment

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

Thanks for submitting this! The changes you've made to snippets in documentation looks comprehensive. However, the field descriptions on the container schema page also needs to be updated to reflect the new structure of environment variables.

@willtsai
Copy link
Copy Markdown
Contributor

NOTE: these docs changes are dependent on code changes to be merged first: radius-project/radius#7744

Signed-off-by: Nick Beenham <1985327+superbeeny@users.noreply.github.com>
Signed-off-by: Nick Beenham <1985327+superbeeny@users.noreply.github.com>
|------|:--------:|-------------|---------|
| image | y | The registry and image to download and run in your container. Follows the format `<registry-hostname>:<port>/<image-name>:<tag>` where registry hostname is optional and defaults to the Docker public registry, port is optional and defaults to 443, tag is optional and defaults to `latest`.| `ghcr.io/USERNAME/myimage:latest`
| env | n | A list of environment variables to be set for the container. | `'ENV_VAR': 'value'`
| env | n | A list of environment variables to be set for the container. Environment variables can either be of `value` or a reference so a kubernetes secret in the format `valueFrom`. | `'ENV_VAR': { value: 'value' }` or `'ENV_VAR': { valueFrom: { secretRef: { source: secret.id key: 'SECRET_KEY' } } }`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we make the reference description more higher level, since kubernetes secret is implementation detail and will change when support for types is added?

Suggested change
| env | n | A list of environment variables to be set for the container. Environment variables can either be of `value` or a reference so a kubernetes secret in the format `valueFrom`. | `'ENV_VAR': { value: 'value' }` or `'ENV_VAR': { valueFrom: { secretRef: { source: secret.id key: 'SECRET_KEY' } } }`
| env | n | A list of environment variables to be set for the container. Environment variables can either be of `value` or a reference to a Application.Core/SecretStore resource id in the format `valueFrom`. | `'ENV_VAR': { value: 'value' }` or `'ENV_VAR': { valueFrom: { secretRef: { source: secret.id key: 'SECRET_KEY' } } }`

Signed-off-by: Nick Beenham <1985327+superbeeny@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants