refactor(task): replace kubectl-ctx with kubectl-ns in get-namespace function

This commit is contained in:
Janik von Rotz committed 2026-03-02 11:48:54 +01:00
1 parent 4428a15978
commit ba72e6340e
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ keepass_entry=$(echo "env/${PWD##*/}" | tr '[:upper:]' '[:lower:]')
get-namespace() {
if kubectl-ctx &> /dev/null; then
echo $(kubectl-ctx -c 2> /dev/null)
echo $(kubectl-ns -c 2> /dev/null)
fi
}
namespace="$(get-namespace)"