zun/zun/api/controllers/v1/schemas
Hongbin Lu 21ae28cc1a Support file injection on container
Add support for file injection on creating the container.
API users need to pass the file contents by using the 'mounts'
attribute. The content will persist into a temp file in the
compute host and bind-mount into the container.

To achieve this, we introduce the volume driver called 'Local'.
This driver will implement the volume driver interface and
handle file injection related operations.

In data model, we adds a new field 'contents' into the volume_mapping
table. We also change 'volume_id' to be nullable because file
injection doesn't need a cinder volume.

A future work is to add the ability to limit the size and number
of injected files. The limits should be configurable either via
admin APIs or config options.

Implements: blueprint inject-files-to-container
Change-Id: I4ab6f50684f77bd7762e872d884ce11a7b0807ba
2018-08-12 21:34:21 +00:00
..
__init__.py Add validators to the controllers 2016-12-26 10:33:22 +00:00
capsules.py Move parameter types module to schemas 2018-05-23 13:06:19 +07:00
containers.py Support health check for Docker containers 2018-08-06 15:01:03 +08:00
images.py Add 'host' parameter on image delete 2018-05-29 02:13:08 +00:00
network.py Move parameter types module to schemas 2018-05-23 13:06:19 +07:00
parameter_types.py Support file injection on container 2018-08-12 21:34:21 +00:00
services.py Move parameter types module to schemas 2018-05-23 13:06:19 +07:00