mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-04 06:34:26 +00:00
a4169f1007
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
11 lines
No EOL
326 B
Bash
Executable file
11 lines
No EOL
326 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [[ $# < 1 ]]; then
|
|
echo "Usage: $0 [production|staging|...]"
|
|
exit 1
|
|
fi
|
|
|
|
export ZED_KUBE_NAMESPACE=$1
|
|
|
|
pod=$(kubectl --namespace=${ZED_KUBE_NAMESPACE} get pods --selector=app=zed --output=jsonpath='{.items[*].metadata.name}')
|
|
exec kubectl --namespace $ZED_KUBE_NAMESPACE exec --tty --stdin $pod -- /bin/bash |