MCPcopy Index your code
hub / github.com/1Panel-dev/KubePi / apiV1UrlWithNsUrl

Function apiV1UrlWithNsUrl

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

Source from the content-addressed store, hash-verified

4 return `/api/v1/proxy/${cluster_name}/k8s/api/v1/${type}`
5}
6const apiV1UrlWithNsUrl = (cluster_name, type, namespaces) => {
7 return `/api/v1/proxy/${cluster_name}/k8s/api/v1/namespaces/${namespaces}/${type}`
8}
9const appsV1Url = (cluster_name, type) => {
10 return `/api/v1/proxy/${cluster_name}/k8s/apis/apps/v1/${type}`
11}

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