Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 41 for outputFormat (0.19 sec)

  1. cmd/kubeadm/app/cmd/config_test.go

    	}
    
    	testcases := []struct {
    		name           string
    		cfg            kubeadmapiv1.ClusterConfiguration
    		outputFormat   string
    		expectedOutput string
    	}{
    		{
    			name: "text output",
    			cfg: kubeadmapiv1.ClusterConfiguration{
    				KubernetesVersion: dummyKubernetesVersionStr,
    			},
    			outputFormat: "text",
    			expectedOutput: `registry.k8s.io/kube-apiserver:{{.KubeVersion}}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/token_test.go

    		extraGroups  []string
    		outputFormat string
    		expected     string
    	}{
    		{
    			name:         "JSON output",
    			id:           "abcdef",
    			secret:       "1234567890123456",
    			description:  "valid bootstrap tooken",
    			usages:       []string{"signing", "authentication"},
    			extraGroups:  []string{"system:bootstrappers:kubeadm:default-node-token"},
    			outputFormat: "json",
    			expected: `{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/configdump.go

    	}
    	if outputFormat == "yaml" {
    		outbyte, err := yaml.JSONToYAML([]byte(out))
    		if err != nil {
    			return err
    		}
    		out = string(outbyte)
    	}
    	fmt.Fprintln(c.Stdout, out)
    	return nil
    }
    
    // PrintSecretDump prints just the secret config dump to the ConfigWriter stdout
    func (c *ConfigWriter) PrintSecretDump(outputFormat string) error {
    	if c.configDump == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 20:46:41 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/ztunnel/configdump/configdump.go

    	}
    	_, _ = c.Stdout.Write([]byte("\n"))
    	if err := c.PrintSecretSummary(); err != nil {
    		return err
    	}
    	return nil
    }
    
    func (c *ConfigWriter) PrintFullDump(outputFormat string) error {
    	out := c.FullDump
    	if outputFormat == "yaml" {
    		var err error
    		out, err = yaml.JSONToYAML(out)
    		if err != nil {
    			return err
    		}
    	}
    	fmt.Fprintln(c.Stdout, string(out))
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/ztunnel/configdump/policies.go

    	}
    	return w.Flush()
    }
    
    // PrintPolicyDump prints the relevant services in the config dump to the ConfigWriter stdout
    func (c *ConfigWriter) PrintPolicyDump(filter PolicyFilter, outputFormat string) error {
    	zDump := c.ztunnelDump
    	policies := slices.Filter(zDump.Policies, filter.Verify)
    	slices.SortFunc(policies, func(a, b *ZtunnelPolicy) int {
    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/envoy/configdump/ecds.go

    func (c *ConfigWriter) PrintEcds(outputFormat string) error {
    	if c.configDump == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    
    	dump, err := c.configDump.GetEcdsConfigDump()
    	if err != nil {
    		return err
    	}
    
    	out, err := protomarshal.MarshalIndentWithGlobalTypesResolver(dump, "    ")
    	if err != nil {
    		return err
    	}
    	if outputFormat == "yaml" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jan 14 02:41:27 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. operator/cmd/mesh/operator-common.go

    	manifestsPath string
    	// revision is the Istio control plane revision the command targets.
    	revision string
    	// outputFormat controls the format of operator dumps
    	outputFormat string
    }
    
    const (
    	operatorResourceName     = "istio-operator"
    	operatorDefaultNamespace = "istio-operator"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Dec 17 02:25:04 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/ztunnel/configdump/services.go

    	}
    	return w.Flush()
    }
    
    // PrintServiceDump prints the relevant services in the config dump to the ConfigWriter stdout
    func (c *ConfigWriter) PrintServiceDump(filter ServiceFilter, outputFormat string) error {
    	zDump := c.ztunnelDump
    	svcs := slices.Filter(zDump.Services, filter.Verify)
    	slices.SortFunc(svcs, func(a, b *ZtunnelService) int {
    		if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 {
    			return r
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/template_flags.go

    	if (f.TemplateArgument == nil || len(*f.TemplateArgument) == 0) && len(templateFormat) == 0 {
    		return nil, NoCompatiblePrinterError{Options: f, OutputFormat: &templateFormat}
    	}
    
    	templateValue := ""
    
    	if f.TemplateArgument == nil || len(*f.TemplateArgument) == 0 {
    		for format := range templateFormats {
    			format = format + "="
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/ztunnel/configdump/connections.go

    	"istio.io/istio/pkg/slices"
    )
    
    type ConnectionsFilter struct {
    	Namespace string
    	Direction string
    	Raw       bool
    }
    
    func (c *ConfigWriter) PrintConnectionsDump(filter ConnectionsFilter, outputFormat string) error {
    	d := c.ztunnelDump
    	workloads := maps.Values(d.WorkloadState)
    	workloads = slices.SortFunc(workloads, func(a, b WorkloadState) int {
    		if r := cmp.Compare(a.Info.Namespace, b.Info.Namespace); r != 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top