'verify a volume update is needed'

def needs_update_volume(self, volume, volume_mount):

    exist_volume = self.find_volume_by_name(volume)
    exist_volume_mount = self.find_volume_by_name(volume, mounts=True)
    results = []
    results.append((exist_volume['name'] == volume['name']))
    if ('secret' in volume):
        results.append(('secret' in exist_volume))
        results.append((exist_volume['secret']['secretName'] == volume['secret']['secretName']))
        results.append((exist_volume_mount['name'] == volume_mount['name']))
        results.append((exist_volume_mount['mountPath'] == volume_mount['mountPath']))
    elif ('emptyDir' in volume):
        results.append((exist_volume_mount['name'] == volume['name']))
        results.append((exist_volume_mount['mountPath'] == volume_mount['mountPath']))
    elif ('persistentVolumeClaim' in volume):
        pvc = 'persistentVolumeClaim'
        results.append((pvc in exist_volume))
        if results[(-1)]:
            results.append((exist_volume[pvc]['claimName'] == volume[pvc]['claimName']))
            if ('claimSize' in volume[pvc]):
                results.append((exist_volume[pvc]['claimSize'] == volume[pvc]['claimSize']))
    elif ('hostpath' in volume):
        results.append(('hostPath' in exist_volume))
        results.append((exist_volume['hostPath']['path'] == volume_mount['mountPath']))
    return (not all(results))
