MCPcopy
hub / github.com/1Panel-dev/KubePi / patch

Function patch

web/dashboard/src/plugins/request.js:171–177  ·  view source on GitHub ↗
(url, data, headers, loading)

Source from the content-addressed store, hash-verified

169}
170
171export const patch = (url, data, headers, loading) => {
172 if (headers) {
173 headers["Content-type"] = "application/merge-patch+json"
174 return promise(request({url: url, headers: headers, method: "patch", data}), loading)
175 }
176 return promise(request({url: url, method: "patch", data}), loading)
177}
178
179export default {
180 install(Vue) {

Callers 11

scaleDeploymentFunction · 0.90
patchDeploymentFunction · 0.90
scaleStatefulsetFunction · 0.90
patchStatefulsetFunction · 0.90
cordonNodeFunction · 0.90
updateApiServerFunction · 0.90
changeApiserviceFunction · 0.90
changeStorageClassFunction · 0.90
patchDaemonsetFunction · 0.90

Calls 1

promiseFunction · 0.70

Tested by

no test coverage detected