def Req.patch

bend-kube-runtime@0.2.0.0 · src/core.bend:235

import bend-kube-runtime@0.2.0.0/src/core.bend as Core
import Base
import bend-kube-runtime@0.2.0.0/src/json.bend as J
import bend-kube-runtime@0.2.0.0/src/http.bend as H

235# A patch of the object, or of a subresource ("status", "scale") when sub
236# is not empty. Server-side apply (PApply) sends JSON, which is YAML.
237def Req.patch(a: Api, name: String, +sub: String, +p: PatchKind, body: J.Json) -> H.Req:
238  H.Req{"PATCH", Api.item(a, name) ++ Req.sub(sub) ++ Query.render(PatchKind.query(p)),
239    Req.body_headers(PatchKind.content_type(p)), J.Json.show(body)}

Uses (13)

Used by (2)