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

Function deploymentWithNsUrl

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

Source from the content-addressed store, hash-verified

4 return `/api/v1/proxy/${cluster_name}/k8s/apis/apps/v1/deployments`
5}
6const deploymentWithNsUrl = (cluster_name, namespaces) => {
7 return `/api/v1/proxy/${cluster_name}/k8s/apis/apps/v1/namespaces/${namespaces}/deployments`
8}
9
10export function listDeployments (cluster_name, currentPage, pageSize) {
11 let url = deploymentUrl(cluster_name)

Callers 3

listDeploymentsByNsFunction · 0.85
scaleDeploymentFunction · 0.85
patchDeploymentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected