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

Function getSecret

web/dashboard/src/api/secrets.js:34–36  ·  view source on GitHub ↗
(cluster_name, namespace, name)

Source from the content-addressed store, hash-verified

32}
33
34export function getSecret (cluster_name, namespace, name) {
35 return get(`${namespaceSecretUrl(cluster_name, namespace)}/${name}`)
36}
37
38export function createSecret (cluster_name, namespace, data) {
39 return post(`${namespaceSecretUrl(cluster_name, namespace)}`, data)

Calls 2

getFunction · 0.90
namespaceSecretUrlFunction · 0.85

Tested by

no test coverage detected