Fix yaql related issues in Docker apps

Partially-Implements: bp refactor-apps-scripts

Change-Id: Iaf75ec38b133d45778bb1c0f3328e939a9a54bda
This commit is contained in:
Dmytro Dovbii
2016-03-28 16:28:03 +03:00
parent 7144c14372
commit b46d49af09
28 changed files with 51 additions and 51 deletions

View File

@@ -76,14 +76,14 @@ Methods:
_getPodName:
Body:
- Return: toLower($.name)
- Return: $.name.toLower()
_getPodLabels:
Arguments:
- podName:
Contract: $.string().notNull()
Body:
Return: $.labels2Map(toLower($.labels)).mergeWith(dict(id => $podName))
Return: $.labels2Map($.labels.toLower()).mergeWith(dict(id => $podName))
hostContainer:
Arguments:
@@ -105,7 +105,7 @@ Methods:
- $._deleteContainer($container.name)
- $containerDef:
name: toLower($container.name)
name: $container.name.toLower()
image: $container.image
args: $container.commands
ports: $container.ports.select($this._getPortDefinition($))
@@ -185,7 +185,7 @@ Methods:
Contract: $.string().notNull()
Body:
- $lenBefore: len($._podDefinition.spec.containers) + len($._podDefinition.spec.volumes)
- $containerName: toLower($name)
- $containerName: $name.toLower()
- $newContainers: $._podDefinition.spec.containers.where($.name != $containerName)
- $volumeNameMap: $.getAttr(volumeNameMap, dict())
- $newVolumeNameMap: {}