Skip to content

Commit

Permalink
Extract script for getting the dashboard token
Browse files Browse the repository at this point in the history
  • Loading branch information
perk-sumo committed Sep 29, 2020
1 parent e2cad35 commit 8e0bb5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vagrant/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ kubectl -n kube-system get services | grep -i kubernetes-dashboard | awk '{print
echo

echo Dashboard token:
kubectl -n kube-system describe secret default| awk '$1=="token:"{print $2}'
echo $(/sumologic/vagrant/scripts/get-dashboard-token.sh)
echo

ln -s /sumologic/vagrant/scripts/sumo-make.sh /usr/local/bin/sumo-make
Expand Down
3 changes: 3 additions & 0 deletions vagrant/scripts/get-dashboard-token.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

kubectl -n kube-system describe secret default | awk '$1=="token:"{print $2}'

0 comments on commit 8e0bb5e

Please sign in to comment.