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

Function appsV1UrlWithNsUrl

web/dashboard/src/api/workloads.js:12–14  ·  view source on GitHub ↗
(cluster_name, type, namespaces)

Source from the content-addressed store, hash-verified

10 return `/api/v1/proxy/${cluster_name}/k8s/apis/apps/v1/${type}`
11}
12const appsV1UrlWithNsUrl = (cluster_name, type, namespaces) => {
13 return `/api/v1/proxy/${cluster_name}/k8s/apis/apps/v1/namespaces/${namespaces}/${type}`
14}
15const batchV1Url = (cluster_name, type) => {
16 return `/api/v1/proxy/${cluster_name}/k8s/apis/batch/v1/${type}`
17}

Callers 5

getWorkLoadByNameFunction · 0.85
deleteWorkLoadFunction · 0.85
forceDeleteWorkLoadFunction · 0.85
createWorkLoadFunction · 0.85
updateWorkLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected