Added support for replicas keys in v3

resolves #644 `replicas` key
This commit is contained in:
Suraj Narwade
2017-07-04 12:40:12 +05:30
parent eb808c36ff
commit 041d7f7d61
8 changed files with 56 additions and 14 deletions
+2
View File
@@ -53,6 +53,7 @@ type ConvertOptions struct {
IsDeploymentFlag bool
IsDaemonSetFlag bool
IsReplicationControllerFlag bool
IsReplicaSetFlag bool
IsDeploymentConfigFlag bool
IsNamespaceFlag bool
}
@@ -92,6 +93,7 @@ type ServiceConfig struct {
MemLimit yaml.MemStringorInt `compose:"mem_limit" bundle:""`
TmpFs []string `compose:"tmpfs" bundle:""`
Dockerfile string `compose:"dockerfile" bundle:""`
Replicas int `compose:"replicas" bundle:""`
}
// EnvVar holds the environment variable struct of a container