22 lines
1.4 KiB
Markdown
22 lines
1.4 KiB
Markdown
# AGENTS.md
|
|
|
|
## Scope
|
|
- This repository contains the Belki calculator/VK bot plus legacy CatWar userscript assets.
|
|
- Key files: [`app/`](./app), [`web/calculator.html`](./web/calculator.html), [`Dockerfile`](./Dockerfile), and [`deploy/k8s/`](./deploy/k8s).
|
|
|
|
## Working Rules
|
|
- Keep the calculation domain independent from HTTP, VK, and Kubernetes.
|
|
- Keep VK tokens and group IDs out of the repository; use environment variables or Kubernetes Secrets.
|
|
- Production manifests are already applied in namespace `belki`; CI deploys them from `main` using the namespace-scoped RBAC in [`deploy/k8s/rbac.yaml`](./deploy/k8s/rbac.yaml).
|
|
- The production build uses a privileged Docker executor with an explicit `docker:29.6.1-dind` service alias and TCP endpoint.
|
|
|
|
## Validation
|
|
- For CI-only changes, prefer a targeted YAML parse and a diff review.
|
|
- For image/runtime changes, check the `Dockerfile`, Python entrypoint, static asset serving, and CI job together.
|
|
- For k3s changes, validate YAML and current cluster inventory first; keep `KUBE_CONFIG_B64` masked/protected in GitLab.
|
|
- Do not add unnecessary local build artifacts or temporary files to the repository.
|
|
|
|
## Notes
|
|
- The build job waits for the DinD daemon and runs `docker info` before building.
|
|
- Never commit `.env` or `.gitlab.variables.env`; the latter contains the GitLab Variable handoff and a namespace-scoped kubeconfig.
|