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

Function addUrlNamespace

internal/api/v1/proxy/proxy.go:478–484  ·  view source on GitHub ↗
(path string, ns string)

Source from the content-addressed store, hash-verified

476}
477
478func addUrlNamespace(path string, ns string) string {
479 ss := strings.Split(path, "/")
480 resourceName := ss[len(ss)-1]
481 per := ss[:len(ss)-1]
482 namespacedSs := append(per, "namespaces", ns, resourceName)
483 return strings.Join(namespacedSs, "/")
484}
485
486func Install(parent iris.Party) {
487 handler := NewHandler()

Callers 2

KubernetesAPIProxyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected