@staticmethod
def _build_volume(volume):
    """
        Given a generic volume definition, create the volumes element
        """
    return {'hostPath': volume.get('host'), 'containerPath': volume.get(
        'container'), 'mode': 'RO' if volume.get('readonly') else 'RW'}
