Generic service type handler for kompose

Moved label handling code from Transformer to loader,
to make it generic to handle creating service types.

Added new attribute to ServiceConfig which gets populated
in loader.

Fixes #273
This commit is contained in:
Suraj Deshmukh
2016-11-16 22:01:01 +05:30
parent 83c7a824dc
commit bb9e4fba61
5 changed files with 72 additions and 77 deletions
+1
View File
@@ -143,6 +143,7 @@ type ServiceConfig struct {
Restart string
User string
VolumesFrom []string
ServiceType string
}
// EnvVar holds the environment variable struct of a container