mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 18:44:33 +00:00
18 lines
430 B
Bash
18 lines
430 B
Bash
#!/bin/bash
|
|
# Knoe Installer: krew (kubectl plugin manager)
|
|
# Installs krew via Homebrew if kubectl krew is unavailable
|
|
|
|
set -euo pipefail
|
|
|
|
echo "[knoe] Checking kubectl krew..."
|
|
if ! kubectl krew version >/dev/null 2>&1; then
|
|
echo "[knoe] Installing krew via brew..."
|
|
brew install krew
|
|
echo "[knoe] Updating krew index..."
|
|
kubectl krew update || true
|
|
else
|
|
echo "[knoe] krew already installed"
|
|
fi
|
|
|
|
echo "[knoe] krew OK"
|