Set service volume size with kompose.volume.size label (#235)

1. Copy labels from compose to kobject
2. If kompose.volume.size is set on service level, use it

Internal API changes:

- Add PVCSize to kobject Volumes struct
- Pass default volume size as CreatePVC() param
This commit is contained in:
Anatoli Babenia
2017-11-12 13:05:55 +03:00
parent b6eddd7a7d
commit 1975c32740
3 changed files with 15 additions and 5 deletions
+1
View File
@@ -142,4 +142,5 @@ type Volumes struct {
Container string // Mountpath
Mode string // access mode for volume
PVCName string // name of PVC
PVCSize string // PVC size
}