Skip to content

Commit

Permalink
Fix kubernetes.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mmontes11 committed May 13, 2024
1 parent 0a0ebb9 commit 915a157
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/k9s/
/k9s/
/k8s-tooling/
10 changes: 5 additions & 5 deletions k9s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,12 @@ mkdir -p "$K9S_CTX/clusters"
git clone -q --no-progress https://github.com/derailed/k9s.git
cp k9s/skins/* "$K9S_CONFIG/skins"
rm -rf k9s
cp .k9s/skins/* "$K9S_CONFIG/skins"

git clone -q --no-progress https://github.com/mmontes11/k8s-tooling.git
cp k8s-tooling/.k9s/config.yaml "$K9S_CONFIG/config.yaml"
cp -r k8s-tooling/.k9s/skins/* "$K9S_CONFIG/skins"
cp -r k8s-tooling/.k9s/clusters/* "$K9S_CTX/clusters"
rm -rf k8s-tooling

K9S_PLUGINS=(
# oficial
Expand All @@ -87,10 +91,6 @@ for i in "${!K9S_PLUGINS[@]}"; do
rm plugin.yaml
done

cp .k9s/config.yaml "$K9S_CONFIG/config.yaml"

cp -r .k9s/clusters/* "$K9S_CTX/clusters"

chown -R "$USER:$USER" "$K9S_CONFIG"
chown -R "$USER:$USER" "$K9S_CTX"

Expand Down

0 comments on commit 915a157

Please sign in to comment.