Call child process with custom environment
Project description
envfrom
Kubernetes Secrets or ConfigMap are commonly used to run apps deployed in pods. But what about running this app locally with those same variables ? envfrom meet this need among others.
Installation
pip install envfrom
Usage
usage: envfrom [-h] {cli,dir,kube} ... child
Call child process with custom environment
positional arguments:
{cli,dir,kube} env source
cli Dict values: FOO=BAR BAR=FOO
dir Set environment according to files in a specified path
kube Mirror specified kubernetes ressource volume keys (decoded)
child child process
optional arguments:
-h, --help show this help message and exit
Example
Assuming that you already have the following secret created on your default namespace :
apiVersion: v1
kind: Secret
metadata:
name: mysecret
type: Opaque
data:
username: YWRtaW4=
Running :
env -i envfrom kube secrets mysecret env
Should output :
username=admin
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
envfrom-0.1.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file envfrom-0.1.0.tar.gz
.
File metadata
- Download URL: envfrom-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04e5e805140a77ef44462d8d337dcf43a7105d85331b4374664fd2c59b3720d7 |
|
MD5 | 98da4113ba66f8e0b3ec8d0b9b19b9cf |
|
BLAKE2b-256 | 302ab693340e647c4114c5c0c69fc5060330ecaa45b52a272e47ffd2c71c9a7e |
File details
Details for the file envfrom-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: envfrom-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d80fcf9a24424dc2635790ad13036b210f895adadde94969d559cf44a4c3ce78 |
|
MD5 | 5542fe1311aeacfa93dcb8455594d8ef |
|
BLAKE2b-256 | b79bc8aaf09954eb2ee1fce71fb247d7ed8f0f3e987dd184baa2eb82e7260e80 |