fix: add kubectl preflight check and clarify repo-root usage in comment
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
ingress:
|
ingress:
|
||||||
host: shorefront.yourdomain.com
|
host: shorefront.yourdomain.com
|
||||||
|
|
||||||
# Secrets are NOT managed by Helm. Run scripts/create-secrets.sh before
|
# Secrets are NOT managed by Helm. Run scripts/create-secrets.sh from the
|
||||||
# the first helm install/ArgoCD sync:
|
# repository root before the first helm install/ArgoCD sync:
|
||||||
#
|
#
|
||||||
# export POSTGRES_PASSWORD=<real-password>
|
# export POSTGRES_PASSWORD=<real-password>
|
||||||
# export JWT_SECRET_KEY=<real-jwt-secret>
|
# export JWT_SECRET_KEY=<real-jwt-secret>
|
||||||
|
|||||||
@@ -3,6 +3,12 @@ set -euo pipefail
|
|||||||
|
|
||||||
NAMESPACE="shorefront"
|
NAMESPACE="shorefront"
|
||||||
|
|
||||||
|
# --- Preflight checks ---
|
||||||
|
if ! command -v kubectl &>/dev/null; then
|
||||||
|
echo "Error: kubectl is not installed or not in PATH" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# --- Validate required env vars ---
|
# --- Validate required env vars ---
|
||||||
: "${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}"
|
: "${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required}"
|
||||||
: "${JWT_SECRET_KEY:?JWT_SECRET_KEY is required}"
|
: "${JWT_SECRET_KEY:?JWT_SECRET_KEY is required}"
|
||||||
|
|||||||
Reference in New Issue
Block a user