Skip to content
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

chore: Update description for container env var option to mention debug mode #5787

Merged
merged 6 commits into from
Aug 23, 2023

Conversation

lucashuy
Copy link
Contributor

@lucashuy lucashuy commented Aug 17, 2023

Which issue(s) does this change fix?

None.

Why is this change necessary?

Currently, the option to pass in environment variables to local related containers are scoped to only happen when a debugging option (eg. --debug-port) is passed in. The description does not mention this, potentially causing confusion as to why the option is not working.

How does it address the issue?

Mentions that the option sends environment variables only in a debugging session.

What side effects does this change have?

None.

Mandatory Checklist

PRs will only be reviewed after checklist is complete

  • Add input/output type hints to new functions/methods
  • Write design document if needed (Do I need to write a design document?)
  • Write/update unit tests
  • Write/update integration tests
  • Write/update functional tests if needed
  • make pr passes
  • make update-reproducible-reqs if dependencies were changed
  • Write documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added area/schema JSON schema file pr/internal labels Aug 17, 2023
@lucashuy lucashuy marked this pull request as ready for review August 17, 2023 23:11
@lucashuy lucashuy requested a review from a team as a code owner August 17, 2023 23:11
@@ -166,7 +166,8 @@ def invoke_common_options(f):
click.option(
"--container-env-vars",
type=click.Path(exists=True),
help="JSON file containing environment variables to be set within the container environment",
help="JSON file containing environment variables to be set within the container "
"environment when used in a debugging session locally.",
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to mention that these are extra environment variables and not a replacement for --env-vars parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe something like this can help make this a little more clear:

JSON file containing additional environment variables to be set within the container when used in a debugging session locally.

Adding the word "additional" and removed "environment"

@hnnasit hnnasit added this pull request to the merge queue Aug 23, 2023
Merged via the queue into aws:develop with commit 178ac8d Aug 23, 2023
76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants