Explorar el Código

support form queries for config type'

Alexander Belanger hace 4 años
padre
commit
8773d79791
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      internal/templater/dynamic/reader.go

+ 5 - 0
internal/templater/dynamic/reader.go

@@ -58,6 +58,11 @@ func NewDynamicTemplateReader(client dynamic.Interface, obj *Object) templater.T
 		Resource: r.Object.Resource,
 		Resource: r.Object.Resource,
 	}
 	}
 
 
+	// just case on the "core" group and unset it
+	if r.Object.Group == "core" {
+		objRes.Group = ""
+	}
+
 	r.gvr = objRes
 	r.gvr = objRes
 
 
 	r.resource = r.Client.Resource(objRes).Namespace(r.Object.Namespace)
 	r.resource = r.Client.Resource(objRes).Namespace(r.Object.Namespace)