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

Function apiServerUrl

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

Source from the content-addressed store, hash-verified

4 return `/api/v1/proxy/${cluster_name}/k8s/apis`
5}
6const apiServerUrl = (cluster_name) => {
7 return `${apiUrl(cluster_name)}/apiregistration.k8s.io/v1/apiservices`
8}
9
10export function listApis (cluster_name) {
11 return get(`${apiUrl(cluster_name)}`)

Callers 4

createApiServerFunction · 0.85
updateApiServerFunction · 0.85
getApiServiceFunction · 0.85
listApiServicesFunction · 0.85

Calls 1

apiUrlFunction · 0.70

Tested by

no test coverage detected