- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 47 for outputFormat (0.49 sec)
-
istioctl/pkg/proxyconfig/proxyconfig.go
path := "stats" if outputFormat == jsonOutput || outputFormat == yamlOutput { // for yaml output we will convert the json to yaml when printed path += "?format=json" } else if outputFormat == prometheusOutput { path += "/prometheus" } else if outputFormat == prometheusMergedOutput {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 16 03:28:36 UTC 2024 - 48K bytes - Viewed (0) -
operator/cmd/mesh/profile-dump.go
return err } } var output string if output, err = yamlToFormat(y, pdArgs.outputFormat); err != nil { return err } l.Print(output) return nil } // validateOutputFormatFlag validates if the output format is valid. func validateProfileOutputFormatFlag(outputFormat string) error { switch outputFormat { case jsonOutput, yamlOutput, flagsOutput: default:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 15 01:18:49 UTC 2024 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/kube_template_flags.go
} // ToPrinter receives an outputFormat and returns a printer capable of // handling --template printing. // Returns false if the specified outputFormat does not match a supported format. // Supported Format types can be found in pkg/printers/printers.go func (f *KubeTemplatePrintFlags) ToPrinter(outputFormat string) (printers.ResourcePrinter, error) { if f == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 13 10:28:09 UTC 2021 - 3.3K bytes - Viewed (0) -
istioctl/pkg/ztunnelconfig/ztunnelconfig.go
RunE: runConfigDump(ctx, common, func(cw *ztunnelDump.ConfigWriter) error { switch common.outputFormat { case summaryOutput: return cw.PrintSecretSummary() case jsonOutput, yamlOutput: return cw.PrintSecretDump(common.outputFormat) default: return fmt.Errorf("output format %q not supported", common.outputFormat) } }), ValidArgsFunction: completion.ValidPodsNameArgs(ctx), }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 20:18:34 UTC 2024 - 22K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig.go
if err != nil { return err } if ga.outputFormat == "yaml" { if outputBytes, err = yaml.JSONToYAML(outputBytes); err != nil { return err } } _, err = out.Write(outputBytes) return err default: return fmt.Errorf("output format %q not supported", ga.outputFormat) } } type istiodConfigLog struct { state flagState }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 13.5K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig_test.go
outputLogLevel string stackTraceLevel string outputFormat string } tests := []struct { name string args args want *istiodConfigLog }{ { name: "given --reset flag return reset command", args: args{ ctrzClient: ctrzClient, reset: true, outputLogLevel: "", stackTraceLevel: "", outputFormat: "", },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 6.2K bytes - Viewed (0) -
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) -
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) -
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) -
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)