examples/minimal: the sandbox's configuration as a minimal example of a deployment #51
Loading…
Reference in a new issue
No description provided.
Delete branch "examples-minimal"
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?
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 ofsaraksh/kubek8s/apps/roomcitymerged into one directory: the StatefulSet with the oauth2-proxy container, the ServiceAccount and Role, the Services, the Ingress, the NetworkPolicy,files/start.shandfiles/roomcity.tomlas 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.Names of the deployment are replaced by
example.orgplaceholders (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/configtests loadroomcity.tomlof the example with the server's loader, parse the city's files, and compare the StatefulSet's images withkube.image; the test workflow runskubectl 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.
Read at
ccde4bfagainst 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 bypacks.lock, whichgc import installwrites 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, andgo mod tidyhas nothing to change.Two things before it merges.
test / gois red on this head: the step the pull request adds ends withkubectl: 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.The example names 0.3.2, on which
guestnever starts: the server passes a session's Job only theGC_variables of gc's start config, so the provider'senvofcity/city.tomldoes 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 saysguestruns 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 andkube.imageto each other. A test that holds both to the newest version of CHANGELOG.md would make each release pull request move it.8eec25466ff3c990121dRead again at
f3c9901. Both points are answered:test / gois green with the kustomize step, the example names 0.3.3 andTestTheExamplesImageIsTheNewestReleaseholds 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.
guesthas been seen to start and answer on 0.3.3 in the city, which the README says it does. gc holdsguestback 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
secretstoexamples/minimal/k8s/role.yaml, since the release that carries it cannot start a session without the rule.