// expandFieldExportFields returns the key/value pairs for an adopted
// resource that should be used as structured data in log messages about the
// field export
expandFieldExportFields returns the key/value pairs for an adopted
resource that should be used as structured data in log messages about the
field export
// expandFieldExportFields returns the key / value pairs for an adopted // resource that should be used as structured data in log messages about the // field export
func expandFieldExportFields(
	res *v1alpha1.FieldExport,
	additionalValues ...interface{},
) []interface{} {
	ns := res.Namespace
	resName := res.Name
	generation := res.Generation
	vals := []interface{}{
		"source_name", res.Spec.From.Resource.Name,
		"source_kind", res.Spec.From.Resource.Kind,
		"source_path", res.Spec.From.Path,
		"target_name", res.Spec.To.Name,
		"target_namespace", res.Spec.To.Namespace,
		"target_kind", res.Spec.To.Kind,
		"namespace", ns,
		"name", resName,
		"generation", generation,
	}
	if len(additionalValues) > 0 {
		vals = append(vals, additionalValues...)
	}
	return vals
}
func expandFieldExportFields ( res * v1alpha1 . FieldExport , additionalValues ... interface { } , ) [ ] interface { } { ns := res . Namespace resName := res . Name generation := res . Generation vals := [ ] interface { } { " " , res . Spec . From . Resource . Name , " " , res . Spec . From . Resource . Kind , " " , res . Spec . From . Path , " " , res . Spec . To . Name , " " , res . Spec . To . Namespace , " " , res . Spec . To . Kind , " " , ns , " " , resName , " " , generation , } if len ( additionalValues ) > 0 { vals = append ( vals , additionalValues ... ) } return vals }
expandFieldExportFields returns the key/value pairs for an adopted
resource that should be used as structured data in log messages about the
field export
expandFieldExportFields returns the key / value pairs for an adopted resource that should be used as structured data in log messages about the field export