INNER CODE UNIT · Go

GenerateObj

arttor/helmify · internal/test_utils.go:22

func GenerateObj(objYaml string) *unstructured.Unstructured {
	obj := unstructured.Unstructured{}
	dec := yaml.NewDecodingSerializer(unstructured.UnstructuredJSONScheme)
	_, _, err := dec.Decode([]byte(objYaml), nil, &obj)
	if err != nil {
		panic(err)
	}
	return &obj
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…