spark_on_k8s.utils.env¶
Implementation reference. These symbols describe how the project works; their presence here does not make them supported application imports. Use the documented entry points and support policy.
Parse SPARK_ON_K8S_* environment variables with errors that name the variable.
ConfigurationError
¶
Bases: ValueError
An environment variable holds a value that cannot be used.
Source code in spark_on_k8s/utils/env.py
10 11 | |
env_client_config(name, configuration_type)
¶
A Kubernetes client configuration from a JSON object of its constructor arguments.
Source code in spark_on_k8s/utils/env.py
54 55 56 57 58 59 60 61 62 63 | |
env_json(name, default, kind)
¶
A JSON object or array. The value is never echoed: some of these variables hold secrets.
Source code in spark_on_k8s/utils/env.py
39 40 41 42 43 44 45 46 47 48 49 50 51 | |
env_optional_int(name)
¶
An integer, or None when the variable is unset or empty.
Source code in spark_on_k8s/utils/env.py
24 25 26 | |