Skip to content
Permalink
Browse files

Removed autoenv and added klogs function

  • Loading branch information...
eko committed Oct 9, 2019
1 parent dd86e98 commit 1afa23db6c22a5f1e4eca47b949f8e90559693fd
Showing with 7 additions and 4 deletions.
  1. +0 −1 .brew
  2. +7 −0 .functions
  3. +0 −3 .sources
1 .brew
@@ -114,7 +114,6 @@ brew cask install tableplus
# misc
brew cask install gpgtools

brew install autoenv
brew install awscli
brew install curl
brew install fd
@@ -432,6 +432,13 @@ function kimage {
kubectl --context $1 -n $2 describe pod/$podName | grep Image: | head -1 | cut -d':' -f2- | tr -d ' '
}

# Kubernetes display of pod logs
# Usage: klogs context namespace pod-name additional-options
function klogs {
podName=`kubectl --context $1 -n $2 get pods | grep $3 | cut -d' ' -f1 | head -1`
kubectl --context $1 -n $2 logs pod/$podName ${@:4}
}

function kubernetes_image_diff {
k describe pods -n $1 --context $2 | grep Image: | cut -d':' -f2 -f3 | cut -d'/' -f2- | tr -d ' ' > /tmp/$2.diff
}
@@ -1,6 +1,3 @@
# Autoenv
source /usr/local/opt/autoenv/activate.sh

# RVM
source /Users/vincent/.rvm/scripts/rvm

0 comments on commit 1afa23d

Please sign in to comment.
You can’t perform that action at this time.