# Скрипты k3s-test

Все shell/Python/Node скрипты bootstrap, deploy, CI и утилит. Запускать из каталога `k3s-test/`.

**Файлов:** 38


## `scripts/`


| Файл | Назначение |
|------|------------|
| `scripts/bootstrap-argocd.sh` | ArgoCD AppProject + Applications (sova-root, data-test, test-contour) |
| `scripts/bootstrap-gitea-ci-secrets.sh` | Gitea Actions secrets: registry, deploy SSH key |
| `scripts/bootstrap-gitea-runner.sh` | Установка Gitea Actions runner в k3s |
| `scripts/bootstrap-gitea.sh` | Bootstrap Gitea: org sova, repos, admin user |
| `scripts/bootstrap-multipass.sh` | Полный bootstrap VM + k3s + platform |
| `scripts/bootstrap-redmine.sh` | REST API: проект sova-platform + задача #27 |
| `scripts/bootstrap-vm.sh` | Generic VM bootstrap helper |
| `scripts/build-images.sh` | Сборка Docker-образов всех приложений (local-test/test tag) |
| `scripts/configure-k3s-registry.sh` | k3s registries.yaml → pull из git.sova.local |
| `scripts/deploy-monitoring-logs.sh` | Helm: Loki + Promtail (логи в Grafana) |
| `scripts/deploy-platform-ingress.sh` | Ingress rules: Gitea, ArgoCD, Grafana, Redmine, docs |
| `scripts/deploy-platform.sh` | Platform stack: ingress, ArgoCD, Gitea, Prometheus/Grafana |
| `scripts/deploy-redmine.sh` | Helm Redmine + ingress + ArgoCD app redmine-test |
| `scripts/deploy-sentry-redmine.sh` | Alias → deploy-redmine.sh (Sentry удалён) |
| `scripts/deploy-test-stack.sh` | Деплой приложений test-контура |
| `scripts/import-images-to-vm.sh` | docker load .images/*.tar в Multipass VM |
| `scripts/install-k3s-multipass.sh` | Установка k3s внутри Multipass VM |
| `scripts/k3d-bootstrap.sh` | k3d cluster + ingress + apps (Mac без Multipass) |
| `scripts/migrate-monorepo-branch.sh` | Demo: миграция ветки monorepo для issue #27 |
| `scripts/prepare-db-init.py` | Split SQL на schema/seed (helper для prepare-db-init.sh) |
| `scripts/prepare-db-init.sh` | Генерация schema/seed SQL из monorepo |
| `scripts/print-test-users.sh` | Тестовые логины/пароли приложений |
| `scripts/print-urls.sh` | URL всех сервисов и пароли platform |
| `scripts/release-tag.sh` | Создать git tag → Gitea CI → GitOps |
| `scripts/release-test-tag.sh` | Wrapper → release-tag.sh (backward compat) |
| `scripts/resize-multipass-vm.sh` | Увеличить CPU/RAM Multipass VM |
| `scripts/setup-git-flow-branches.sh` | Создать prod/test/stage в Gitea repos |
| `scripts/setup-gitea-branch-protection.sh` | Branch protection: PR-only на env-ветки |
| `scripts/setup-gitea-redmine-integration.sh` | Инструкции Gitea ↔ Redmine (manual UI) |
| `scripts/smoke-test.sh` | Smoke-проверки HTTP + kubectl |
| `scripts/sync-from-monorepo.sh` | Синхронизация кода из родительского monorepo |
| `scripts/use-kubeconfig.sh` | export KUBECONFIG=~/.kube/sova-test-config |


## `scripts/capture-platform-screenshots/`


| Файл | Назначение |
|------|------------|
| `scripts/capture-platform-screenshots/capture.mjs` | Playwright: снять UI platform screenshots |
| `scripts/capture-platform-screenshots/harness-check.mjs` | Проверка prerequisites screenshot harness |
| `scripts/capture-platform-screenshots/package-lock.json` | JSON-данные / конфиг |
| `scripts/capture-platform-screenshots/package.json` | NPM/Yarn зависимости и scripts |
| `scripts/capture-platform-screenshots/reg-e2e.mjs` | E2E: сценарий регистрации cabinet |
| `scripts/capture-platform-screenshots/run.sh` | Entry point: полный pipeline скриншотов |
