Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for PrintEndpointsSummary (0.16 sec)

  1. istioctl/pkg/writer/envoy/clusters/clusters.go

    	if e.Status != "" && !strings.EqualFold(core.HealthStatus_name[int32(status)], e.Status) {
    		return false
    	}
    	return true
    }
    
    // PrintEndpointsSummary prints just the endpoints config summary to the ConfigWriter stdout
    func (c *ConfigWriter) PrintEndpointsSummary(filter EndpointFilter) error {
    	if c.clusters == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/endpoint_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			gotOut := &bytes.Buffer{}
    			cw := &ConfigWriter{Stdout: gotOut}
    			cd, _ := os.ReadFile("testdata/endpoint/configdump.json")
    			cw.Prime(cd)
    			err := cw.PrintEndpointsSummary(tt.filter)
    			assert.NoError(t, err)
    
    			wantOutputFile := path.Join("testdata/endpoint", fmt.Sprintf("%s_output.txt", tt.name))
    			util.CompareContent(t, gotOut.Bytes(), wantOutputFile)
    		})
    	}
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 12 02:25:59 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/endpoint.go

    	}
    	if outputFormat == "yaml" {
    		if out, err = yaml.JSONToYAML(out); err != nil {
    			return err
    		}
    	}
    	_, _ = fmt.Fprintln(c.Stdout, string(out))
    	return nil
    }
    
    func (c *ConfigWriter) PrintEndpointsSummary(filter EndpointFilter) error {
    	w := new(tabwriter.Writer).Init(c.Stdout, 0, 8, 5, ' ', 0)
    
    	fmt.Fprintln(w, "NAME\tSTATUS\tLOCALITY\tCLUSTER")
    	dump, err := c.retrieveSortedEndpointsSlice(filter)
    	if err != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 09:57:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/envoy/configdump/configdump.go

    		return err
    	}
    	_, _ = c.Stdout.Write([]byte("\n"))
    	if err := c.PrintSecretSummary(); err != nil {
    		return err
    	}
    	_, _ = c.Stdout.Write([]byte("\n"))
    	if err := c.PrintEndpointsSummary(epf); err != nil {
    		return err
    	}
    	return nil
    }
    
    // PrintBootstrapSummary prints bootstrap information for Istio and Envoy from the config dump
    func (c *ConfigWriter) PrintBootstrapSummary() error {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Feb 29 20:46:41 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. istioctl/pkg/proxyconfig/proxyconfig.go

    				Address: address,
    				Port:    uint32(port),
    				Cluster: clusterName,
    				Status:  status,
    			}
    
    			switch outputFormat {
    			case summaryOutput:
    				return configWriter.PrintEndpointsSummary(filter)
    			case jsonOutput, yamlOutput:
    				return configWriter.PrintEndpoints(filter, outputFormat)
    			default:
    				return fmt.Errorf("output format %q not supported", outputFormat)
    			}
    		},
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 15:53:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
Back to top