nodepool/nodepool/driver
Benjamin Schanzel b76a0f458e OpenShift/k8s Provider: Allow passing env vars to Pods
For the OpenShift and Kubernetes drivers, allow passing env vars to the
Pod nodes via their label config.
It is not possible to set persistent env vars in containers on run time
because there is no login shell available. Thus, we need to pass in any
env vars during node launch. This allows to set, e.g., ``http_proxy``
variables.

The env vars are passed as a list of dicts with ``name`` and ``value``
fields as per the k8s Pod YAML schema. [1]

```
- name: pod-fedora
  type: pod
  image: docker.io/fedora:28
  env:
  - name: foo
    value: bar
```

[1] https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/

Change-Id: Ibbd9222fcd8f7dc5be227e7f5c8d8772a4c594e2
2020-07-13 17:11:01 +02:00
..
aws aws: add support for attaching instance profiles 2020-06-12 12:22:50 +02:00
azure Implement an Azure driver 2020-06-15 19:57:11 +01:00
fake Filter active images for OpenStack provider 2020-03-17 16:26:50 +01:00
gce Add GCE driver tests 2020-04-03 11:26:39 -07:00
kubernetes OpenShift/k8s Provider: Allow passing env vars to Pods 2020-07-13 17:11:01 +02:00
openshift OpenShift/k8s Provider: Allow passing env vars to Pods 2020-07-13 17:11:01 +02:00
openshiftpods OpenShift/k8s Provider: Allow passing env vars to Pods 2020-07-13 17:11:01 +02:00
openstack Improve max-servers handling for GCE 2020-06-21 06:38:50 -07:00
static Parallelize initial static node synchronization 2020-04-21 09:44:40 +02:00
test Remove unused use_taskmanager flag 2019-04-02 12:11:07 +00:00
__init__.py Improve max-servers handling for GCE 2020-06-21 06:38:50 -07:00
simple.py Improve max-servers handling for GCE 2020-06-21 06:38:50 -07:00
taskmanager.py Improve max-servers handling for GCE 2020-06-21 06:38:50 -07:00
utils.py Improve max-servers handling for GCE 2020-06-21 06:38:50 -07:00