@@ -272,23 +272,23 @@ func expandApplicationSourceKustomizePatchTarget(in []interface{}) *application.
272272 t := in [0 ].(map [string ]interface {})
273273
274274 if group , ok := t ["group" ]; ok {
275- result .KustomizeResId . KustomizeGvk . Group = group .(string )
275+ result .Group = group .(string )
276276 }
277277
278278 if version , ok := t ["version" ]; ok {
279- result .KustomizeResId . KustomizeGvk . Version = version .(string )
279+ result .Version = version .(string )
280280 }
281281
282282 if kind , ok := t ["kind" ]; ok {
283- result .KustomizeResId . KustomizeGvk . Kind = kind .(string )
283+ result .Kind = kind .(string )
284284 }
285285
286286 if name , ok := t ["name" ]; ok {
287- result .KustomizeResId . Name = name .(string )
287+ result .Name = name .(string )
288288 }
289289
290290 if namespace , ok := t ["namespace" ]; ok {
291- result .KustomizeResId . Namespace = namespace .(string )
291+ result .Namespace = namespace .(string )
292292 }
293293
294294 if label_selector , ok := t ["label_selector" ]; ok {
@@ -834,11 +834,11 @@ func flattenApplicationSourceKustomize(as []*application.ApplicationSourceKustom
834834 if p .Target != nil {
835835 patch ["target" ] = []map [string ]interface {}{
836836 {
837- "group" : p .Target .KustomizeResId . KustomizeGvk . Group ,
838- "version" : p .Target .KustomizeResId . KustomizeGvk . Version ,
839- "kind" : p .Target .KustomizeResId . KustomizeGvk . Kind ,
840- "name" : p .Target .KustomizeResId . Name ,
841- "namespace" : p .Target .KustomizeResId . Namespace ,
837+ "group" : p .Target .Group ,
838+ "version" : p .Target .Version ,
839+ "kind" : p .Target .Kind ,
840+ "name" : p .Target .Name ,
841+ "namespace" : p .Target .Namespace ,
842842 "label_selector" : p .Target .LabelSelector ,
843843 "annotation_selector" : p .Target .AnnotationSelector ,
844844 },
0 commit comments