- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 32 for jsonToYAML (0.22 sec)
-
istioctl/pkg/writer/envoy/configdump/route.go
filteredRoutes = append(filteredRoutes, route) } } out, err := json.MarshalIndent(filteredRoutes, "", " ") if err != nil { return err } if outputFormat == "yaml" { if out, err = yaml.JSONToYAML(out); err != nil { return err } } fmt.Fprintln(c.Stdout, string(out)) return nil } func (c *ConfigWriter) setupRouteConfigWriter() (*tabwriter.Writer, []*route.RouteConfiguration, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 11 05:38:17 UTC 2023 - 7.2K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/rbac/bootstrappolicy/policy_test.go
t.Fatal(err) } jsonData, err := runtime.Encode(legacyscheme.Codecs.LegacyCodec(v1.SchemeGroupVersion, rbacv1.SchemeGroupVersion), list) if err != nil { t.Fatal(err) } yamlData, err := yaml.JSONToYAML(jsonData) if err != nil { t.Fatal(err) } if string(yamlData) != string(expectedYAML) { t.Errorf("Bootstrap policy data does not match the test fixture in %s", filename)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:45:31 UTC 2023 - 9.5K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig.go
outputBytes = append(outputBytes, []byte("\n")...) 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) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 13.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go
} func (s *Serializer) doEncode(obj runtime.Object, w io.Writer) error { if s.options.Yaml { json, err := json.Marshal(obj) if err != nil { return err } data, err := yaml.JSONToYAML(json) if err != nil { return err } _, err = w.Write(data) return err } if s.options.Pretty { data, err := json.MarshalIndent(obj, "", " ") if err != nil { return err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 25 16:08:07 UTC 2022 - 12K bytes - Viewed (0) -
operator/pkg/translate/translate_value_test.go
} if tt.wantErr == "" { byteArray, err := protomarshal.Marshal(gotSpec) if err != nil { t.Errorf("failed to marshal translated IstioOperatorSpec: %s", err) } cpYaml, _ := yaml.JSONToYAML(byteArray) if want := tt.want; !util.IsYAMLEqual(string(byteArray), want) { t.Errorf("ValuesToProto(%s): got:\n%s\n\nwant:\n%s\nDiff:\n%s\n", tt.desc, string(cpYaml), want, util.YAMLDiff(string(byteArray), want)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Dec 06 02:56:54 UTC 2023 - 20.1K bytes - Viewed (0) -
cmd/kubeadm/app/phases/addons/dns/dns.go
Data: coreDNSDeploymentBytes, } if err := patchManager.ApplyPatchesToTarget(patchTarget); err != nil { return nil, err } coreDNSDeploymentBytes, err = yaml.JSONToYAML(patchTarget.Data) if err != nil { return nil, err } return coreDNSDeploymentBytes, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 10:21:20 UTC 2024 - 16.1K bytes - Viewed (0) -
pkg/scheduler/apis/config/scheme/scheme_test.go
} encoder = Codecs.EncoderForVersion(jsonInfo.Serializer, tt.version) buf = bytes.Buffer{} if err := encoder.Encode(tt.obj, &buf); err != nil { t.Fatal(err) } out, err := yaml.JSONToYAML(buf.Bytes()) if err != nil { t.Fatal(err) } if diff := cmp.Diff(tt.want, string(out)); diff != "" { t.Errorf("unexpected encoded configuration:\n%s", diff) } }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 13 07:42:19 UTC 2023 - 22.2K bytes - Viewed (0) -
operator/pkg/object/objects.go
if o == nil { return nil, nil } if o.yaml != nil { return o.yaml, nil } oj, err := o.JSON() if err != nil { return nil, err } o.json = oj y, err := yaml.JSONToYAML(oj) if err != nil { return nil, err } o.yaml = y return y, nil } // YAMLDebugString returns a YAML representation of the K8sObject, or an error string if the K8sObject cannot be rendered to YAML.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Sep 21 07:16:46 UTC 2023 - 15.5K bytes - Viewed (1) -
istioctl/pkg/writer/envoy/configdump/listener.go
} } out, err := json.MarshalIndent(filteredListeners, "", " ") if err != nil { return fmt.Errorf("failed to marshal listeners: %v", err) } if outputFormat == "yaml" { if out, err = yaml.JSONToYAML(out); err != nil { return err } } fmt.Fprintln(c.Stdout, string(out)) return nil } func (c *ConfigWriter) setupListenerConfigWriter() (*tabwriter.Writer, []*listener.Listener, error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Nov 29 12:37:14 UTC 2023 - 18.1K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
return err } } else { dump, err = readFile(configDumpFile) if err != nil { return err } } if outputFormat == yamlOutput { if dump, err = yaml.JSONToYAML(dump); err != nil { return err } } fmt.Fprintln(c.OutOrStdout(), string(dump)) case summaryOutput: var configWriter *configdump.ConfigWriter if len(args) == 1 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 16 03:28:36 UTC 2024 - 48K bytes - Viewed (0)