6 lines
182 B
Bash
Executable File
6 lines
182 B
Bash
Executable File
#!/bin/bash
|
|
|
|
current_dep=$(kubectl config current-context | cut -d "-" -f2)
|
|
dep=${2:-$current_dep}
|
|
echo "$dep $current_dep"
|
|
kubectl config set-context --current --namespace=$dep-${1} |