Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for config_dump (0.17 sec)

  1. istioctl/pkg/proxyconfig/testdata/config_dump.json

    Xiaopeng Han <******@****.***> 1704323286 +0800
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jan 03 23:08:06 UTC 2024
    - 54.8K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/testdata/secret/istio/config_dump.json

    Jacek Ewertowski <******@****.***> 1730145173 +0100
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 28 19:52:53 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/testdata/secret/spire/config_dump.json

    Jacek Ewertowski <******@****.***> 1730145173 +0100
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 28 19:52:53 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. istioctl/pkg/proxyconfig/proxyconfig.go

    }
    
    func setupFileConfigdumpWriter(filename string, out io.Writer) (*configdump.ConfigWriter, error) {
    	data, err := readFile(filename)
    	if err != nil {
    		return nil, err
    	}
    	return setupConfigdumpEnvoyConfigWriter(data, out)
    }
    
    func setupConfigdumpEnvoyConfigWriter(debug []byte, out io.Writer) (*configdump.ConfigWriter, error) {
    	cw := &configdump.ConfigWriter{Stdout: out}
    	err := cw.Prime(debug)
    	if err != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 15:53:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/secret_test.go

    	}
    	for _, tc := range testCases {
    		t.Run(tc.sds, func(t *testing.T) {
    			configDumpFile, err := os.Open(fmt.Sprintf("testdata/secret/%s/config_dump.json", tc.sds))
    			if err != nil {
    				t.Errorf("error opening test data file: %v", err)
    			}
    			defer configDumpFile.Close()
    			configDump, err := io.ReadAll(configDumpFile)
    			if err != nil {
    				t.Errorf("error reading test data file: %v", err)
    			}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 28 19:52:53 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. istioctl/pkg/util/configdump/util.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package configdump
    
    import (
    	"fmt"
    
    	anypb "google.golang.org/protobuf/types/known/anypb"
    )
    
    type configTypeURL string
    
    // See https://www.envoyproxy.io/docs/envoy/latest/api-v3/admin/v3/config_dump.proto
    const (
    	bootstrap configTypeURL = "type.googleapis.com/envoy.admin.v3.BootstrapConfigDump"
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sun Dec 24 08:16:26 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/envoy/configdump/configdump.go

    type ConfigWriter struct {
    	Stdout     io.Writer
    	configDump *configdump.Wrapper
    }
    
    // includeConfigType is a flag to indicate whether to include the config type in the output
    var includeConfigType bool
    
    func SetPrintConfigTypeInSummary(p bool) {
    	includeConfigType = p
    }
    
    // Prime loads the config dump into the writer ready for printing
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Feb 29 20:46:41 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/ztunnel/configdump/configdump.go

    // limitations under the License.
    
    package configdump
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"text/tabwriter"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    )
    
    // ConfigWriter is a writer for processing responses from the Ztunnel Admin config_dump endpoint
    type ConfigWriter struct {
    	Stdout      io.Writer
    	ztunnelDump *ZtunnelDump
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. istioctl/pkg/describe/describe.go

    		byConfigDump, err := client.EnvoyDo(context.TODO(), pod.Name, pod.Namespace, "GET", "config_dump")
    		if err != nil {
    			return fmt.Errorf("failed to execute command on ingress gateway sidecar: %v", err)
    		}
    		cd := configdump.Wrapper{}
    		err = cd.UnmarshalJSON(byConfigDump)
    		if err != nil {
    			return fmt.Errorf("can't parse ingress gateway sidecar config_dump: %v", err)
    		}
    
    		for _, svc := range matchingServices {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 17:36:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    		wantErr     bool
    	}{
    		{
    			name:        "errors if unable to unmarshal bytes",
    			inputFile:   "",
    			wantConfigs: 0,
    			wantErr:     true,
    		},
    		{
    			name:        "loads valid ztunnel config_dump",
    			inputFile:   "testdata/dump.json",
    			wantConfigs: 27,
    			wantErr:     false,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			cw := &ConfigWriter{}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top