dd3895ccbd
Multi-line description of commit, feel free to be detailed. [Ticket: X] ~ ~ ".git/COMMIT_EDITMSG" 14L, 297C
10 lines
216 B
Fish
10 lines
216 B
Fish
function _pure_k8s_namespace
|
|
set namespace (kubectl config view --minify --output 'jsonpath={..namespace}' 2>/dev/null)
|
|
|
|
if test -z "$namespace"
|
|
set namespace default
|
|
end
|
|
|
|
echo $namespace
|
|
end
|