Ver código fonte

support form queries for config type'

Alexander Belanger 4 anos atrás
pai
commit
8773d79791
1 arquivos alterados com 5 adições e 0 exclusões
  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,
 	}
 
+	// just case on the "core" group and unset it
+	if r.Object.Group == "core" {
+		objRes.Group = ""
+	}
+
 	r.gvr = objRes
 
 	r.resource = r.Client.Resource(objRes).Namespace(r.Object.Namespace)