|
|
|
@ -163,7 +163,7 @@ func getGVR(t *testing.T, mapper meta.RESTMapper, obj *unstructured.Unstructured
|
|
|
|
|
|
|
|
|
|
|
|
func getRuntimeObjFromManifests(t *testing.T, manifests []string) []runtime.Object {
|
|
|
|
func getRuntimeObjFromManifests(t *testing.T, manifests []string) []runtime.Object {
|
|
|
|
t.Helper()
|
|
|
|
t.Helper()
|
|
|
|
var objects []runtime.Object
|
|
|
|
objects := []runtime.Object{}
|
|
|
|
for _, manifest := range manifests {
|
|
|
|
for _, manifest := range manifests {
|
|
|
|
m := make(map[string]interface{})
|
|
|
|
m := make(map[string]interface{})
|
|
|
|
err := yaml.Unmarshal([]byte(manifest), &m)
|
|
|
|
err := yaml.Unmarshal([]byte(manifest), &m)
|
|
|
|
|