diff --git a/fn.go b/fn.go index 074e994..8c4a0ae 100644 --- a/fn.go +++ b/fn.go @@ -16,7 +16,7 @@ import ( "github.com/crossplane-contrib/function-kcl/input/v1beta1" pkgresource "github.com/crossplane-contrib/function-kcl/pkg/resource" - + "sigs.k8s.io/yaml" ) @@ -98,7 +98,7 @@ func (f *Function) RunFunction(_ context.Context, req *fnv1beta1.RunFunctionRequ return rsp, nil } log.Debug(fmt.Sprintf("ObservedComposed resources: %d", len(observed))) - in.Spec.Params["ocds"], err = pkgresource.ObjToRawExtension(desired) + in.Spec.Params["ocds"], err = pkgresource.ObjToRawExtension(observed) if err != nil { response.Fatal(rsp, err) return rsp, nil