Merge "Support 'name' field in capsule's container"
This commit is contained in:
commit
6cec75b904
|
@ -455,6 +455,7 @@ capsule_containers_list = {
|
|||
'items': {
|
||||
'type': 'object',
|
||||
'properties': {
|
||||
'name': container_name,
|
||||
'image': image_name,
|
||||
'command': capsule_container_command,
|
||||
'args': capsule_container_args,
|
||||
|
|
|
@ -89,6 +89,7 @@ VALID_STATES = {
|
|||
}
|
||||
|
||||
VALID_CONTAINER_FILED = {
|
||||
'name': 'name',
|
||||
'image': 'image',
|
||||
'command': 'command',
|
||||
'args': 'args',
|
||||
|
|
|
@ -31,6 +31,7 @@ class TestCapsuleController(api_base.FunctionalTest):
|
|||
' "spec": {'
|
||||
' "containers":'
|
||||
' [{"env": {"ROOT_PASSWORD": "foo0"}, '
|
||||
' "name": "test-container", '
|
||||
' "image": "test",'
|
||||
' "resources": '
|
||||
' {"requests": {"cpu": 1, "memory": 1024}}'
|
||||
|
|
Loading…
Reference in New Issue