From 915a15735086f6405436ed1c1e4bef6e7daa5072 Mon Sep 17 00:00:00 2001 From: Martin Montes Date: Mon, 13 May 2024 10:40:38 +0200 Subject: [PATCH] Fix kubernetes.sh --- .gitignore | 3 ++- k9s.sh | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index f726bd1..f978ab1 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/k9s/ \ No newline at end of file +/k9s/ +/k8s-tooling/ \ No newline at end of file diff --git a/k9s.sh b/k9s.sh index 0e7c55b..ea4b939 100755 --- a/k9s.sh +++ b/k9s.sh @@ -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 @@ -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"