diff options
author | OpenShift Bot <eparis+openshiftbot@redhat.com> | 2017-03-22 18:53:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 18:53:47 -0500 |
commit | 3d1f4de1f4fe36163c2b62ef2c385ac746baf598 (patch) | |
tree | 42fc0dcb0f7c4bb569079b8298e2ddefccedee7e /roles/lib_openshift/library/oc_adm_registry.py | |
parent | 763831e73432ab3db69efdbfd06a171be7d0a2af (diff) | |
parent | bfaa7976a2e3090f1b942978f340b9ffbb6b222c (diff) | |
download | openshift-3d1f4de1f4fe36163c2b62ef2c385ac746baf598.tar.gz openshift-3d1f4de1f4fe36163c2b62ef2c385ac746baf598.tar.bz2 openshift-3d1f4de1f4fe36163c2b62ef2c385ac746baf598.tar.xz openshift-3d1f4de1f4fe36163c2b62ef2c385ac746baf598.zip |
Merge pull request #3692 from kwoodson/oc_volume
Merged by openshift-bot
Diffstat (limited to 'roles/lib_openshift/library/oc_adm_registry.py')
-rw-r--r-- | roles/lib_openshift/library/oc_adm_registry.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/lib_openshift/library/oc_adm_registry.py b/roles/lib_openshift/library/oc_adm_registry.py index 93cf34559..3a892971b 100644 --- a/roles/lib_openshift/library/oc_adm_registry.py +++ b/roles/lib_openshift/library/oc_adm_registry.py @@ -2061,7 +2061,7 @@ class Service(Yedit): # -*- -*- -*- Begin included fragment: lib/volume.py -*- -*- -*- class Volume(object): - ''' Class to model an openshift volume object''' + ''' Class to represent an openshift volume object''' volume_mounts_path = {"pod": "spec.containers[0].volumeMounts", "dc": "spec.template.spec.containers[0].volumeMounts", "rc": "spec.template.spec.containers[0].volumeMounts", @@ -2093,6 +2093,11 @@ class Volume(object): elif volume_type == 'hostpath': volume['hostPath'] = {} volume['hostPath']['path'] = volume_info['path'] + elif volume_type == 'configmap': + volume['configMap'] = {} + volume['configMap']['name'] = volume_info['configmap_name'] + volume_mount = {'mountPath': volume_info['path'], + 'name': volume_info['name']} return (volume, volume_mount) |