// expandAdoptedResourceFields returns the key/value pairs for an adopted
// resource that should be used as structured data in log messages about the
// adopted resource
expandAdoptedResourceFields returns the key/value pairs for an adopted
resource that should be used as structured data in log messages about the
adopted resource
// expandAdoptedResourceFields returns the key / value pairs for an adopted // resource that should be used as structured data in log messages about the // adopted resource
func expandAdoptedResourceFields(
	res *v1alpha1.AdoptedResource,
	additionalValues ...interface{},
) []interface{} {
	ns := res.Namespace
	resName := res.Name
	generation := res.Generation
	group := res.Spec.Kubernetes.Group
	kind := res.Spec.Kubernetes.Kind
	vals := []interface{}{
		"target_group", group,
		"target_kind", kind,
		"namespace", ns,
		"name", resName,
		"generation", generation,
	}
	if len(additionalValues) > 0 {
		vals = append(vals, additionalValues...)
	}
	return vals
}
func expandAdoptedResourceFields ( res * v1alpha1 . AdoptedResource , additionalValues ... interface { } , ) [ ] interface { } { ns := res . Namespace resName := res . Name generation := res . Generation group := res . Spec . Kubernetes . Group kind := res . Spec . Kubernetes . Kind vals := [ ] interface { } { " " , group , " " , kind , " " , ns , " " , resName , " " , generation , } if len ( additionalValues ) > 0 { vals = append ( vals , additionalValues ... ) } return vals }
expandAdoptedResourceFields returns the key/value pairs for an adopted
resource that should be used as structured data in log messages about the
adopted resource
expandAdoptedResourceFields returns the key / value pairs for an adopted resource that should be used as structured data in log messages about the adopted resource