examples/minimal: the sandbox's configuration as a minimal example of a deployment #51

Merged
mikluko merged 3 commits from examples-minimal into main 2026-11-16 08:17:46 +00:00
Owner

spec-bb1.36. examples/minimal: the city sandbox's configuration as the repository's minimal example of a deployment.

  • city/: city.toml, pack.toml and the three agents, as in the city's repository (saraksh/gascity-sandbox) now, with the Dolt host a placeholder.
  • k8s/: the manifests of saraksh/kube k8s/apps/roomcity merged into one directory: the StatefulSet with the oauth2-proxy container, the ServiceAccount and Role, the Services, the Ingress, the NetworkPolicy, files/start.sh and files/roomcity.toml as ConfigMaps. ExternalSecrets are gone: the Secrets are named in the README with their keys, and none is in the manifests.
  • registration/sandbox.yaml.template: the application service registration, as the homeserver takes it.
  • README: what it deploys, what must be there before it, a table of the placeholders, the Secrets, the order of the steps.

Names of the deployment are replaced by example.org placeholders (checked by grep for the owner's domain, host names, node and namespace names; what remains is the project's own image and repository, sarak.sh/mikluko/roomcity, which the example needs). Files differ from the deployed ones only by those and by what is cluster-specific (node selector, tolerations, storage class, DNS and certificate annotations), which the README says to add.

Checks: internal/config tests load roomcity.toml of the example with the server's loader, parse the city's files, and compare the StatefulSet's images with kube.image; the test workflow runs kubectl kustomize examples/minimal/k8s. Run here: the tests and the render.

Not done: "the city's files parse with the pinned gc" is a TOML parse only; running gc on them needs the image and a Dolt. The branch was pushed before this review and the Forgejo mirror carries all branches: I read the files for the owner's names before pushing.

spec-bb1.36. `examples/minimal`: the city sandbox's configuration as the repository's minimal example of a deployment. - `city/`: city.toml, pack.toml and the three agents, as in the city's repository (saraksh/gascity-sandbox) now, with the Dolt host a placeholder. - `k8s/`: the manifests of `saraksh/kube` `k8s/apps/roomcity` merged into one directory: the StatefulSet with the oauth2-proxy container, the ServiceAccount and Role, the Services, the Ingress, the NetworkPolicy, `files/start.sh` and `files/roomcity.toml` as ConfigMaps. ExternalSecrets are gone: the Secrets are named in the README with their keys, and none is in the manifests. - `registration/sandbox.yaml.template`: the application service registration, as the homeserver takes it. - README: what it deploys, what must be there before it, a table of the placeholders, the Secrets, the order of the steps. Names of the deployment are replaced by `example.org` placeholders (checked by grep for the owner's domain, host names, node and namespace names; what remains is the project's own image and repository, `sarak.sh/mikluko/roomcity`, which the example needs). Files differ from the deployed ones only by those and by what is cluster-specific (node selector, tolerations, storage class, DNS and certificate annotations), which the README says to add. Checks: `internal/config` tests load `roomcity.toml` of the example with the server's loader, parse the city's files, and compare the StatefulSet's images with `kube.image`; the test workflow runs `kubectl kustomize examples/minimal/k8s`. Run here: the tests and the render. Not done: "the city's files parse with the pinned gc" is a TOML parse only; running gc on them needs the image and a Dolt. The branch was pushed before this review and the Forgejo mirror carries all branches: I read the files for the owner's names before pushing.
examples/minimal: the sandbox's configuration as a minimal example of a deployment
Some checks failed
test / changelog (pull_request) Successful in 10s
image / image (pull_request) Successful in 22s
test / go (pull_request) Failing after 1m1s
ccde4bff2e
The city's repository, the manifests of its place in a cluster, the
registration of the application service as a template and a README, taken
from the deployed city with its names replaced by placeholders of the
documentation kind. The tests load roomcity.toml with the server's loader,
parse the city's files and compare the pod's image with the configuration's;
the test workflow renders the manifests.

Assisted-By: Claude <noreply@anthropic.com>
Author
Owner

Read at ccde4bf against spec-bb1.36 and against what is deployed (saraksh/kube main 1e026c1, saraksh/gascity-sandbox main 712a0f1).

What holds. Rendered, the example and the deployed overlay differ only by the placeholders, the ExternalSecrets, the node selector with its tolerations and the storage class; city/ differs from the city's repository by the Dolt host alone, and by packs.lock, which gc import install writes when it is absent. I found none of the owner's names in the directory: what remains is the project's own image and repository. The three tests pass here under -race, and go mod tidy has nothing to change.

Two things before it merges.

  1. test / go is red on this head: the step the pull request adds ends with kubectl: command not found (run 275). The runner has no kubectl, so the manifests are rendered by nothing. Bring the binary the way the Dockerfile brings its own (a pinned version and its checksum), or render with whatever the runner does have; the README's "What it checks" then says what runs.

  2. The example names 0.3.2, on which guest never starts: the server passes a session's Job only the GC_ variables of gc's start config, so the provider's env of city/city.toml does not reach the pod (seen in the city at 07:26Z, Configuration value not found: GOOSE_PROVIDER). The ticket has the example state only what runs, and the README says guest runs goose. So this waits for the release that carries that fix and names its image. For the releases after it: nothing moves the example's tag, and the test added here only holds the pod and kube.image to each other. A test that holds both to the newest version of CHANGELOG.md would make each release pull request move it.

Read at ccde4bf against spec-bb1.36 and against what is deployed (saraksh/kube main 1e026c1, saraksh/gascity-sandbox main 712a0f1). What holds. Rendered, the example and the deployed overlay differ only by the placeholders, the ExternalSecrets, the node selector with its tolerations and the storage class; `city/` differs from the city's repository by the Dolt host alone, and by `packs.lock`, which `gc import install` writes when it is absent. I found none of the owner's names in the directory: what remains is the project's own image and repository. The three tests pass here under `-race`, and `go mod tidy` has nothing to change. Two things before it merges. 1. `test / go` is red on this head: the step the pull request adds ends with `kubectl: command not found` (run 275). The runner has no kubectl, so the manifests are rendered by nothing. Bring the binary the way the Dockerfile brings its own (a pinned version and its checksum), or render with whatever the runner does have; the README's "What it checks" then says what runs. 2. The example names 0.3.2, on which `guest` never starts: the server passes a session's Job only the `GC_` variables of gc's start config, so the provider's `env` of `city/city.toml` does not reach the pod (seen in the city at 07:26Z, `Configuration value not found: GOOSE_PROVIDER`). The ticket has the example state only what runs, and the README says `guest` runs goose. So this waits for the release that carries that fix and names its image. For the releases after it: nothing moves the example's tag, and the test added here only holds the pod and `kube.image` to each other. A test that holds both to the newest version of CHANGELOG.md would make each release pull request move it.
examples/minimal: render with kustomize in CI, and hold the image to the newest release
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 17s
test / go (pull_request) Successful in 1m18s
8eec25466f
The runner has no kubectl: the test workflow installs kustomize at the version
saraksh/kube's validation uses. A test holds the example's image to the newest
release in CHANGELOG.md, so that each release's pull request has to move it.

Assisted-By: Claude <noreply@anthropic.com>
mikluko force-pushed examples-minimal from 8eec25466f
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 17s
test / go (pull_request) Successful in 1m18s
to f3c990121d
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 22s
test / go (pull_request) Successful in 1m7s
2026-11-16 07:52:13 +00:00
Compare
Author
Owner

Read again at f3c9901. Both points are answered: test / go is green with the kustomize step, the example names 0.3.3 and TestTheExamplesImageIsTheNewestRelease holds it there; the three earlier tests and the render pass here, and the search for the owner's names is still empty.

One change, and one thing it waits for.

  • The new test finds the newest release by a regular expression over CHANGELOG.md. The module already has goldmark: take the first level-two heading whose text is a version from the parsed document. (The kustomize binary comes without a checksum, as saraksh/kube's own workflow takes it; left as it is.)
  • It merges once guest has been seen to start and answer on 0.3.3 in the city, which the README says it does. gc holds guest back at the moment, after its failed starts on 0.3.2.

After it is in, roomcity-b8's per-session Secret (#54) adds its rule on secrets to examples/minimal/k8s/role.yaml, since the release that carries it cannot start a session without the rule.

Read again at f3c9901. Both points are answered: `test / go` is green with the kustomize step, the example names 0.3.3 and `TestTheExamplesImageIsTheNewestRelease` holds it there; the three earlier tests and the render pass here, and the search for the owner's names is still empty. One change, and one thing it waits for. - The new test finds the newest release by a regular expression over CHANGELOG.md. The module already has goldmark: take the first level-two heading whose text is a version from the parsed document. (The kustomize binary comes without a checksum, as saraksh/kube's own workflow takes it; left as it is.) - It merges once `guest` has been seen to start and answer on 0.3.3 in the city, which the README says it does. gc holds `guest` back at the moment, after its failed starts on 0.3.2. After it is in, roomcity-b8's per-session Secret (#54) adds its rule on `secrets` to `examples/minimal/k8s/role.yaml`, since the release that carries it cannot start a session without the rule.
examples/minimal: read the newest release from the parsed changelog
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 16s
test / go (pull_request) Successful in 51s
452b66d6d7
The test found the release by a regular expression over CHANGELOG.md; it now
takes the first level-two heading that names a version from the document
goldmark parses, and has a test of its own.

Assisted-By: Claude <noreply@anthropic.com>
mikluko deleted branch examples-minimal 2026-11-16 08:17:47 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/roomcity!51
No description provided.