7 Commits

Author SHA1 Message Date
Hongbin Lu
aad49b2318 Add sample template for init containers
Change-Id: I7dc365820a15d7d6b7d8cfee5477e9bfba8cc8bc
2018-09-29 16:31:27 +00:00
Kevin Zhao
1e8503e870 Modify restart_policy to spec content
Align with Kubernetes

Change-Id: I24cec2b92ebef0c984cbf74bac074633624c498a
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2018-06-06 14:26:18 +00:00
Hongbin Lu
d047616bbe Make capsule support availability zone
Change-Id: I38ade7d16bbbebb0bd1504691e6a2ace9bbadae8
2018-03-31 20:44:01 +00:00
Kevin Zhao
d4a5f9c5e9 Add detailed parameters for Capsule create
Currently we don't have detailed parameters checking
when creating a capsule, this patch add the volume
parameters type checking and several test cases.

Also modify the related template file and design document.
Change some parameters in the template to Kubernetes
friendly.

Modify the field check from "spec" to "template" in
check_capsule_template, since there already a low level spec
field in capsule yaml. Will also modify the python-zunclient.

Part of blueprint introduce-compose

Change-Id: I88c1c248d83d0a27f5a291fcf9d952bb70234dff
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2018-01-12 10:10:36 +08:00
Kevin Zhao
1325606d45 Add support for Capsule volume
Capsule now can support attach volume when created.
Also modify the template for the format of volume in
capsule.

User can either create a new volume when launch
the capsule by specify the volume size, or use the existed
available volumes by set the volumeID in the template.

Now the volume could not support multiple attach to
serveral container, just support:
1. one volume attach to one container
2. Several volumes attach to one container

Part of blueprint introduce-compose

Change-Id: I2e2afba94cb83e6e7924366cbd8135fe6d6eea16
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2018-01-11 10:29:06 +08:00
Kevin Zhao
d5983c4d28 Add capsule method list
Part of blueprint introduce-compose

Change-Id: I574a0cb9630c4f789c620e2d498373cd927976ba
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2017-09-25 14:54:26 +00:00
Kevin Zhao
70020a9447 Add capsule controller in API side and add create method
1.Add new entrypoint 'experimental', devstack will be
modified to support this.
2.Add controller Capsule
3.Add capsule create method
4.Refactor the code for _do_container_create
5.Add one capsule template

All capsule method in the API level will use:
/experimental/capsules API, apart from v1 API.

Part of blueprint introduce-compose

Change-Id: Ia031ee5beb48ec70dab6bb371944140d025a499b
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2017-08-16 12:42:41 +08:00