Fixing volume entry definitions
* According to http://kubernetes.io/docs/user-guide/volumes/#types-of-volumes anda1b5325011
there is hostPath volume type instead of hostDir; And there is no 'source' keyword anymore. * Replacing 'kubectl update' on 'kubectl replace': kubectl update is deprecated, need to use 'replace':9b3d42c090
Closes-Bug: #1604766 Change-Id: I1029caeb2827fc9de271b457c7a61b043d0189cb
This commit is contained in:
@@ -169,9 +169,9 @@ Methods:
|
||||
- $type: $volume.getType()
|
||||
- Value: $type
|
||||
Match:
|
||||
HostDir:
|
||||
HostPath:
|
||||
- $spec:
|
||||
hostDir:
|
||||
hostPath:
|
||||
path: $volume.getParameters()
|
||||
TempVolume:
|
||||
- $spec:
|
||||
@@ -179,9 +179,10 @@ Methods:
|
||||
Default:
|
||||
- Throw: UnknownDockerVolumeType
|
||||
Message: format('Unknown docker volume type {0}', $type)
|
||||
- Return:
|
||||
- $result:
|
||||
name: $._generateVolumeName($name, $volume)
|
||||
source: $spec
|
||||
|
||||
- Return: $result.mergeWith($spec)
|
||||
|
||||
|
||||
_deleteContainer:
|
||||
|
Reference in New Issue
Block a user