docs(readme): add comprehensive README #517
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd!517
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/readme"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Add a comprehensive
README.mddocumenting thwap-pagesd end to end:THWAP_PAGESD_env vars), an examplethwap-pagesd.yaml, build/run instructions, and container usage./healthz,/readyz,/metrics,/api/v1/sites*,/webhook) with request/response shapes and status codes, plus theSiteandDeploymentmodels.Why
Phase 8 task #104 — first-time documentation so operators can deploy and integrate the daemon.
Testing
go build ./...go vet ./...go test -race ./...gofmt -l ./cmd ./internal ./pkgcleangolangci-lint run— 0 issuesBreaking Changes
None.
Notes
Closes #101
Closes #102
Closes #103
Closes #104
Review Summary
Verified locally on the PR head (
b11f97d): build/vet/full test suite pass (docs-only, no code impact).The README is thorough and — with one exception — accurate against the implementation. I cross-checked the config reference, env-var mapping, endpoints, status codes, models, and webhook behavior against the code: all match, including the correct
<public_url>/webhooktarget derivation and the tag-deletion→rollback /test/*→preview routing. The architecture diagram and component table are a good orientation aid.No blocking issues.
Non-blocking observations:
kubernetes.kubeconfigis documented as "Explicit kubeconfig path (default: in-cluster or~/.kube/config)", but the key is never consumed —kubernetes.NewClient()takes no args and always uses in-cluster config with default loading rules (verified viarg; the field has been dead since #129). SettingTHWAP_PAGESD_KUBERNETES_KUBECONFIGhas no effect. Suggest either wiring the key intoNewClientor marking it "not yet wired" in the README so operators aren't misled.main) also trigger a production publish, and non-v*tag pushes do too (the reselect just ignores them). Fine for an overview, worth a footnote if the README grows.forgejo.NewClientversion check) — worth one line in the container usage.Approving.