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

Function deploymentUrl

web/dashboard/src/api/deployments.js:3–5  ·  view source on GitHub ↗
(cluster_name)

Source from the content-addressed store, hash-verified

1import {get, patch} from "@/plugins/request"
2
3const deploymentUrl = (cluster_name) => {
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}

Callers 1

listDeploymentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected