Skip to content

Allow passing environent variables to StreamProcessors#4916

Merged
mxpv merged 1 commit intocontainerd:masterfrom
stefanberger:streamproc_env_vars
Jan 12, 2021
Merged

Allow passing environent variables to StreamProcessors#4916
mxpv merged 1 commit intocontainerd:masterfrom
stefanberger:streamproc_env_vars

Conversation

@stefanberger
Copy link
Copy Markdown
Contributor

Add support for an 'envs' field to the StreamProcessor configuration
and append it to the os.Environ() array.
The envs field takes environment variables in the form of key=value.

Signed-off-by: Stefan Berger [email protected]

@k8s-ci-robot
Copy link
Copy Markdown

Hi @stefanberger. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jan 7, 2021

Build succeeded.

Comment thread services/server/config/config.go Outdated
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.

Nit: Envs -> Env.

In my understanding "an environment" means a set of variables, not a single variable

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I now renamed all occurrences of 'Envs' and 'envs' and removed the trailing 's'.

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.

Envs -> Env (so field name corresponds to toml)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oooh, I though I had replaced them all. Thanks!

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jan 8, 2021

Build succeeded.

@stefanberger
Copy link
Copy Markdown
Contributor Author

Are these test failures related to this change? They don't look to be..

Add support for an 'env' field to the StreamProcessor configuration
and append the environment variables found there to the os.Environ()
array.
The env field takes environment variables in the form of key=value.

Signed-off-by: Stefan Berger <[email protected]>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jan 11, 2021

Build succeeded.

  • containerd-build-arm64 : RETRY_LIMIT in 1m 00s (non-voting)

Copy link
Copy Markdown
Member

@dmcgowan dmcgowan left a comment

Choose a reason for hiding this comment

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

LGTM

@mxpv mxpv merged commit a4f4a43 into containerd:master Jan 12, 2021
@stefanberger stefanberger deleted the streamproc_env_vars branch January 12, 2021 00:46
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.

6 participants