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

Function statefulsetUrlWithNs

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

Source from the content-addressed store, hash-verified

4 return `/api/v1/proxy/${cluster_name}/k8s/apis/apps/v1/statefulsets`;
5};
6const statefulsetUrlWithNs = (cluster_name, namespace) => {
7 return `/api/v1/proxy/${cluster_name}/k8s/apis/apps/v1/namespaces/${namespace}/statefulsets`;
8};
9const statefulsetUrlWithNsAndName = (cluster_name, namespace ,name) => {
10 return `/api/v1/proxy/${cluster_name}/k8s/apis/apps/v1/namespaces/${namespace}/statefulsets/${name}`;
11};

Callers 2

scaleStatefulsetFunction · 0.85
patchStatefulsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected