def Lease.release
import bend-kube-runtime@0.2.0.0/src/lease.bend as Leaseimport Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J
121# The Lease handed back: no holder, a one-second duration, so the next
122# candidate takes it at once (client-go's ReleaseOnCancel).
123def Lease.release(+l: J.Json, +now: String) -> J.Json:
124 J.Json.set(l, "spec", Lease.new_spec("", 1, now, now, Lease.transitions(l)))