#!/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"