Skip to content

Allow inheriting some environment variables #8

Description

@cansjt

In many places you call subprocess.run() passing it some hand-crafted environment (passing env=<some dict> to the function). This prevents the sub-process from inherit some important variables. For example we have terraform modules that interact with kubernetes, yet they cannot see the KUBECONFIG environment variable from the parent shell. This can result in various outcomes from authentication failures to talking to the wrong cluster leading to messing up terraform state.

Would you consider adding a way to provide a list of variable sub-processes can inherit ? Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions