prole/knoe/scripts/install_prole_krew.sh
chrisfu 4ee2b259c9 Checkpoint: rename installer to knoe + harden db build context
- Add build-context helper to copy Docker context safely (ignore runtime data, keep symlinks)

- Update UI and core actions to use ~/.prole/build and shared copy helper

- Add/adjust tests and scripts; introduce knoe ops helpers and update manifests

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-22 01:45:21 -07:00

18 lines
436 B
Bash

#!/bin/bash
# Prole Installer: krew (kubectl plugin manager)
# Installs krew via Homebrew if kubectl krew is unavailable
set -euo pipefail
echo "[prole] Checking kubectl krew..."
if ! kubectl krew version >/dev/null 2>&1; then
echo "[prole] Installing krew via brew..."
brew install krew
echo "[prole] Updating krew index..."
kubectl krew update || true
else
echo "[prole] krew already installed"
fi
echo "[prole] krew OK"