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

Suppress 'ignored env' warning #393

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Suppress 'ignored env' warning #393

merged 1 commit into from
Oct 8, 2024

Conversation

DrJosh9000
Copy link
Contributor

What

Set BUILDKITE_IGNORED_ENV to a blank var, to suppress the error message.
Note that this behaviour depends on the next agent release (v3.83.0?)

Why

agent-stack-k8s circumvents the normal flow of env vars through the agent - it sets all the job vars on the checkout/command containers, when (outside of the k8s stack) the agent wouldn't do this. This never caused a warning until the agent started passing more env vars through the socket, including BUILDKITE_IGNORED_ENV, which the agent populates, causing the warning to appear even though the vars are not actually ignored.

What we should do is provide a way to set all the agent configuration that is normally set as "protected" env vars (#391), and then un-circumvent the env var shenanigans the scheduler does (future work). Until then, we can ignore the ignored-env warning.

Copy link

@123sarahj123 123sarahj123 left a comment

Choose a reason for hiding this comment

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

LGTM :)

@DrJosh9000 DrJosh9000 merged commit bae40bb into main Oct 8, 2024
1 check passed
@DrJosh9000 DrJosh9000 deleted the suppress-ignored-env branch October 8, 2024 04:24
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