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

Function createService

web/dashboard/src/api/services.js:41–43  ·  view source on GitHub ↗
(cluster_name, namespace, data)

Source from the content-addressed store, hash-verified

39}
40
41export function createService (cluster_name, namespace, data) {
42 return post(`${namespaceServiceUrl(cluster_name, namespace)}`, data)
43}
44
45export function updateService (cluster_name, namespace, name, data) {
46 return put(`${namespaceServiceUrl(cluster_name, namespace)}/${name}`, data)

Callers

nothing calls this directly

Calls 2

postFunction · 0.90
namespaceServiceUrlFunction · 0.85

Tested by

no test coverage detected