Merge "Allow imagePullPolicy to be upper case"
This commit is contained in:
commit
8648fd6485
|
@ -246,6 +246,8 @@ class CapsuleController(base.Controller):
|
|||
container_dict['memory'] = str(allocation['memory'])
|
||||
container_dict.pop('resources')
|
||||
|
||||
container_dict['image_pull_policy'] = (
|
||||
container_dict.get('image_pull_policy', 'always').lower())
|
||||
container_dict['status'] = consts.CREATING
|
||||
container_dict['interactive'] = True
|
||||
container_dict['capsule_id'] = new_capsule.id
|
||||
|
|
|
@ -124,7 +124,8 @@ workdir = {
|
|||
|
||||
image_pull_policy = {
|
||||
'type': ['string', 'null'],
|
||||
'enum': ['never', 'always', 'ifnotpresent', None]
|
||||
'enum': ['never', 'always', 'ifnotpresent',
|
||||
'Never', 'Always', 'IfNotPresent', None]
|
||||
}
|
||||
|
||||
labels = {
|
||||
|
|
Loading…
Reference in New Issue