- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for JSONToYAMLOrDie (0.33 sec)
-
staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go
Status: V1DeepEqualSafePodStatus(), } } func JSONToYAMLOrDie(in []byte) []byte { data, err := yaml.JSONToYAML(in) if err != nil { panic(err) } return data } func streamYAMLTestData() (io.Reader, *v1.PodList, *v1.ServiceList) { pods, svc := testData() r, w := io.Pipe() go func() { defer w.Close() w.Write(JSONToYAMLOrDie([]byte(runtime.EncodeOrDie(corev1Codec, pods))))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 11:58:41 UTC 2023 - 56.1K bytes - Viewed (0)