diff --git a/request/request.go b/request/request.go index 740632d..7e75351 100644 --- a/request/request.go +++ b/request/request.go @@ -74,6 +74,14 @@ func GetDesiredComposedResources(req *v1beta1.RunFunctionRequest) (map[resource. if err := resource.AsObject(r.GetResource(), dcd.Resource); err != nil { return nil, err } + switch r.Ready { + case v1beta1.Ready_READY_UNSPECIFIED: + dcd.Ready = resource.ReadyUnspecified + case v1beta1.Ready_READY_TRUE: + dcd.Ready = resource.ReadyTrue + case v1beta1.Ready_READY_FALSE: + dcd.Ready = resource.ReadyFalse + } dcds[resource.Name(name)] = dcd } return dcds, nil