Skip to content

Commit

Permalink
chore: Add kubectl plugins install script
Browse files Browse the repository at this point in the history
Signed-off-by: Schubert Anselme <[email protected]>
  • Loading branch information
sanselme committed Nov 3, 2024
1 parent bc978b1 commit 85f8f40
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/install/kubernetes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0
# source scripts/alias.sh
# source scripts/environment.sh

export os="$(uname | tr '[:upper:]' '[:lower:]')"
export arch="$(uname -m)"

plugins=($(yq '.plugins.kubernetes.krew[]' config/versions.yaml))

[[ DEBUG -eq 1 ]] && echo """
os: ${os}
arch: ${arch}
plugins: ${plugins[*]}
"""

for plugin in "${plugins[@]}"; do
kubectl krew install "${plugin}"
done

0 comments on commit 85f8f40

Please sign in to comment.