Compare commits
3 Commits
929cdf0f25
...
b40d7e7a6a
Author | SHA1 | Date | |
---|---|---|---|
b40d7e7a6a | |||
23353843a1 | |||
74b4c585c2 |
@ -14,3 +14,4 @@ lt() {
|
|||||||
fi
|
fi
|
||||||
ls -l --tree -L $DEPTH -I ".git|cache|log|logs|node_modules|vendor" $@
|
ls -l --tree -L $DEPTH -I ".git|cache|log|logs|node_modules|vendor" $@
|
||||||
}
|
}
|
||||||
|
alias aws='docker run --rm -ti -v ~/.aws:/root/.aws -v $(pwd):/aws -e AWS_PROFILE -e AWS_DEFAULT_REGION -e AWS_REGION -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY amazon/aws-cli'
|
||||||
|
@ -73,7 +73,7 @@ source <(kubectl completion zsh)
|
|||||||
## Merge multiple kubeconfigs
|
## Merge multiple kubeconfigs
|
||||||
function join_by { local d=$1; shift; echo -n "$1"; shift; printf "%s" "${@/#/$d}"; }
|
function join_by { local d=$1; shift; echo -n "$1"; shift; printf "%s" "${@/#/$d}"; }
|
||||||
KUBECONFIG="$HOME/.kube/config"
|
KUBECONFIG="$HOME/.kube/config"
|
||||||
OTHER_CLUSTERS="$(join_by :$HOME/.kube/clusters/ $(echo $HOME/.kube/clusters/$(ls $HOME/.kube/clusters)))"
|
OTHER_CLUSTERS="$(join_by :$HOME/.kube/clusters/ $(echo $HOME/.kube/clusters/$(/bin/ls $HOME/.kube/clusters)))"
|
||||||
export KUBECONFIG=$KUBECONFIG:$OTHER_CLUSTERS
|
export KUBECONFIG=$KUBECONFIG:$OTHER_CLUSTERS
|
||||||
|
|
||||||
## Kubectl exec
|
## Kubectl exec
|
||||||
|
Loading…
Reference in New Issue
Block a user