Skip to content

Commit

Permalink
adds kubernetes shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Gohlke committed Jul 7, 2023
1 parent 77e0484 commit 75a05da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/kubernetes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

__lazy_install gum

function k8_eks_choose_cluster {
gum spin --show-output --spinner dot --title 'aws eks list is loading...' -- aws eks list-clusters --no-paginate --output text \
| awk '{ print $2 }' \
| gum choose --height=20 \
| xargs aws eks --region eu-central-1 update-kubeconfig --name
}

0 comments on commit 75a05da

Please sign in to comment.