- coulomb-social: requests 100m/256Mi -> 15m/176Mi (limits unchanged)
- reuse-surface: main 100m/256Mi -> 5m/64Mi, landing 10m/32Mi -> 5m/16Mi
- vergabe-demo-company: memory request 256Mi -> 512Mi, CPU 60m kept
- inter-hub (retired, CORE-WP-0007): delete chart, values, Make targets,
smoke script and production deploy workflow; release to be uninstalled
Full renders vs live: resources only, except the vergabe release-unit label
from 64530e1 not yet on its Service and PVCs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 276069@bnt-lap001
Assistant-Session: 2e192b3d-b3e8-4403-94d4-d55a2c8b476c
45 lines
1.5 KiB
Bash
Executable file
45 lines
1.5 KiB
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$ROOT_DIR"
|
|
|
|
VERGABE_RELEASE="${VERGABE_RELEASE:-vergabe-teilnahme}"
|
|
VERGABE_NAMESPACE="${VERGABE_NAMESPACE:-vergabe-teilnahme}"
|
|
VERGABE_CHART="${VERGABE_CHART:-charts/vergabe-teilnahme}"
|
|
VERGABE_VALUES="${VERGABE_VALUES:-helm/vergabe-teilnahme-values.yaml}"
|
|
DRY_RUN_CREATE_NAMESPACES="${DRY_RUN_CREATE_NAMESPACES:-false}"
|
|
|
|
for cmd in kubectl helm; do
|
|
if ! command -v "$cmd" >/dev/null 2>&1; then
|
|
echo "ERROR: missing required command: $cmd" >&2
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
echo "server dry-run: checking Kubernetes API discovery"
|
|
if ! kubectl api-resources >/dev/null; then
|
|
echo "ERROR: cannot reach a representative Kubernetes API server" >&2
|
|
echo "Check kubeconfig, runner placement, and cluster access prerequisites." >&2
|
|
echo "See docs/manifest-server-dry-run.md." >&2
|
|
exit 1
|
|
fi
|
|
|
|
if [[ "$DRY_RUN_CREATE_NAMESPACES" == "true" ]]; then
|
|
echo "server dry-run: ensuring namespace $VERGABE_NAMESPACE exists"
|
|
kubectl create namespace "$VERGABE_NAMESPACE" --dry-run=client -o yaml | kubectl apply -f -
|
|
fi
|
|
|
|
tmpdir="$(mktemp -d)"
|
|
trap 'rm -rf "$tmpdir"' EXIT
|
|
helm template "$VERGABE_RELEASE" "$VERGABE_CHART" \
|
|
--namespace "$VERGABE_NAMESPACE" \
|
|
-f "$VERGABE_VALUES" \
|
|
> "$tmpdir/vergabe-teilnahme.yaml"
|
|
|
|
echo "server dry-run: committed manifests"
|
|
kubectl apply --dry-run=server -f manifests
|
|
|
|
echo "server dry-run: rendered $VERGABE_RELEASE chart"
|
|
kubectl apply --dry-run=server -n "$VERGABE_NAMESPACE" -f "$tmpdir/vergabe-teilnahme.yaml"
|
|
|