forked from longtao.wu/droboticflow
One declarative catalog (ops/catalog/*.yaml) now describes every deploy, acceptance, release, diagnose and platform action with typed args, tier-based role mapping, preflight checks and honest per-surface availability. scripts/generate_ops_catalog.py validates it and generates the Go catalog, the Claude Code skill and slash commands, the product's TypeScript catalog and docs/ops-catalog.md (--check is part of verify:local). droctl runs any action with argument validation, preflights (branch, cluster reachability via load-deploy-env.sh), confirm/admin gates and real dry-run only where a script supports it. The Claude skill drives droctl so both share one execution path. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
29 lines
957 B
Bash
Executable File
29 lines
957 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Read-only snapshot of the deployment namespace for `droctl run status.workloads`.
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
DEPLOY_ENV="${DEPLOY_ENV:-}"
|
|
export DEPLOY_ENV
|
|
# shellcheck source=scripts/load-deploy-env.sh
|
|
source "$ROOT_DIR/scripts/load-deploy-env.sh"
|
|
|
|
K8S_NAMESPACE="${K8S_NAMESPACE:-droboticflow}"
|
|
|
|
section() {
|
|
printf '\n== %s ==\n' "$1"
|
|
}
|
|
|
|
section "deployments ($K8S_NAMESPACE)"
|
|
kubectl -n "$K8S_NAMESPACE" get deployments -o wide
|
|
section "pods"
|
|
kubectl -n "$K8S_NAMESPACE" get pods -o wide
|
|
section "jobs (newest 20)"
|
|
kubectl -n "$K8S_NAMESPACE" get jobs --sort-by=.metadata.creationTimestamp | tail -n 21
|
|
section "services"
|
|
kubectl -n "$K8S_NAMESPACE" get services
|
|
section "persistent volume claims"
|
|
kubectl -n "$K8S_NAMESPACE" get pvc
|
|
section "warning events (newest 20)"
|
|
kubectl -n "$K8S_NAMESPACE" get events --field-selector type=Warning --sort-by=.lastTimestamp | tail -n 21
|