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.
In many places you call
subprocess.run()passing it some hand-crafted environment (passingenv=<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 theKUBECONFIGenvironment 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.