(self, instance)
Process all the endpoints associated with this instance.
        All the endpoints themselves are optional, but at least one must be passed.
Process all the endpoints associated with this instance.
        All the endpoints themselves are optional, but at least one must be passed.
Process all the endpoints associated with this instance . All the endpoints themselves are optional but at least one must be passed .
def check(self, instance):
        """
        Process all the endpoints associated with this instance.
        All the endpoints themselves are optional, but at least one must be passed.
        """
        processed = False
        # Get the config for the istio_mesh instance
        istio_mesh_endpoint = instance.get('istio_mesh_endpoint')
        if istio_mesh_endpoint:
            istio_mesh_config = self.config_map[istio_mesh_endpoint]

            # Process istio_mesh
            self.process(istio_mesh_config)
            processed = True

        # Get the config for the process_mixer instance
        process_mixer_endpoint = instance.get('mixer_endpoint')
        if process_mixer_endpoint:
            process_mixer_config = self.config_map[process_mixer_endpoint]

            # Process process_mixer
            self.process(process_mixer_config)
            processed = True

        # Get the config for the process_pilot instance
        process_pilot_endpoint = instance.get('pilot_endpoint')
        if process_pilot_endpoint:
            process_pilot_config = self.config_map[process_pilot_endpoint]

            # Process process_pilot
            self.process(process_pilot_config)
            processed = True

        # Get the config for the process_galley instance
        process_galley_endpoint = instance.get('galley_endpoint')
        if process_galley_endpoint:
            process_galley_config = self.config_map[process_galley_endpoint]

            # Process process_galley
            self.process(process_galley_config)
            processed = True

        # Get the config for the process_citadel instance
        process_citadel_endpoint = instance.get('citadel_endpoint')
        if process_citadel_endpoint:
            process_citadel_config = self.config_map[process_citadel_endpoint]

            # Process process_citadel
            self.process(process_citadel_config)
            processed = True

        # Check that at least 1 endpoint is configured
        if not processed:
            raise CheckException("At least one of Mixer, Mesh, Pilot, Galley or Citadel endpoints must be configured")
def check ( self , instance ) : processed = False # Get the config for the istio_mesh instance istio_mesh_endpoint = instance . get ( 'istio_mesh_endpoint' ) if istio_mesh_endpoint : istio_mesh_config = self . config_map [ istio_mesh_endpoint ] # Process istio_mesh self . process ( istio_mesh_config ) processed = True # Get the config for the process_mixer instance process_mixer_endpoint = instance . get ( 'mixer_endpoint' ) if process_mixer_endpoint : process_mixer_config = self . config_map [ process_mixer_endpoint ] # Process process_mixer self . process ( process_mixer_config ) processed = True # Get the config for the process_pilot instance process_pilot_endpoint = instance . get ( 'pilot_endpoint' ) if process_pilot_endpoint : process_pilot_config = self . config_map [ process_pilot_endpoint ] # Process process_pilot self . process ( process_pilot_config ) processed = True # Get the config for the process_galley instance process_galley_endpoint = instance . get ( 'galley_endpoint' ) if process_galley_endpoint : process_galley_config = self . config_map [ process_galley_endpoint ] # Process process_galley self . process ( process_galley_config ) processed = True # Get the config for the process_citadel instance process_citadel_endpoint = instance . get ( 'citadel_endpoint' ) if process_citadel_endpoint : process_citadel_config = self . config_map [ process_citadel_endpoint ] # Process process_citadel self . process ( process_citadel_config ) processed = True # Check that at least 1 endpoint is configured if not processed : raise CheckException ( "At least one of Mixer, Mesh, Pilot, Galley or Citadel endpoints must be configured" )