'check to see if we need to update'

def needs_update(self):

    exclude_list = ['clusterIP', 'portalIP', 'type', 'protocol']
    if ((self.service is None) or (not Utils.check_def_equal(self.prepared_registry['service'].yaml_dict, self.service.yaml_dict, exclude_list, debug=self.verbose))):
        self.prepared_registry['service_update'] = True
    exclude_list = ['dnsPolicy', 'terminationGracePeriodSeconds', 'restartPolicy', 'timeoutSeconds', 'livenessProbe', 'readinessProbe', 'terminationMessagePath', 'securityContext', 'imagePullPolicy', 'protocol', 'type', 'defaultMode', 'activeDeadlineSeconds']
    if ((self.deploymentconfig is None) or (not Utils.check_def_equal(self.prepared_registry['deployment'].yaml_dict, self.deploymentconfig.yaml_dict, exclude_list, debug=self.verbose))):
        self.prepared_registry['deployment_update'] = True
    return (self.prepared_registry['deployment_update'] or self.prepared_registry['service_update'] or False)
