examples/minimal: the Role the server calls need, and fsGroup for a block volume #57

Merged
mikluko merged 5 commits from example-role-fsgroup into main 2026-11-16 08:53:03 +00:00
Owner

From roomcity-ee's read of the example as a stranger. (1) fsGroup: 1000 in the example's pod: on a block volume, root's, the clone into /home/city fails without it. The deployed pod uses a host path (local-path-provisioner, mode 0777), which ignores fsGroup, so saraksh/kube does not take it; the README sentence says the volume must be writable by 1000. (2) The Role is trimmed to the server's calls (internal/kube/jobs.go at main): Jobs create, delete, get, list; pods list; pods/log get; Secrets create, update, delete. The same trim goes to saraksh/kube in its own pull request. Render passes; the config tests do not touch the Role.

From roomcity-ee's read of the example as a stranger. (1) `fsGroup: 1000` in the example's pod: on a block volume, root's, the clone into /home/city fails without it. The deployed pod uses a host path (local-path-provisioner, mode 0777), which ignores fsGroup, so saraksh/kube does not take it; the README sentence says the volume must be writable by 1000. (2) The Role is trimmed to the server's calls (internal/kube/jobs.go at main): Jobs create, delete, get, list; pods list; pods/log get; Secrets create, update, delete. The same trim goes to saraksh/kube in its own pull request. Render passes; the config tests do not touch the Role.
examples/minimal: the Role the server calls need, and fsGroup for a block volume
Some checks failed
test / changelog (pull_request) Failing after 5s
test / go (pull_request) Successful in 58s
10209f507f
The server makes, reads, lists and deletes Jobs, lists their pods and reads
their logs, and makes, replaces and deletes Secrets; nothing watches and the
Job controller makes the pods, so the Role drops watch and the pod rights it
never used. The StatefulSet gets fsGroup 1000: a block volume is root's and the
clone into /home/city failed without it. The deployed pod's host-path volume
ignores it, so saraksh/kube does not take it.

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

Read at 10209f5. The trimmed Role agrees with the calls: the server makes these and no other at v0.3.3 and on main (internal/kube/jobs.go; the only clients are client-go's typed one and rest): Jobs create, delete, get, list; pods list; pods/log get; and on main Secrets create, update, delete. Nothing watches, and a Job's pods are deleted by the cluster's collector, not by the server.

Before it merges:

  1. Rebase onto main: 0.4.0 is cut, the pull request conflicts and test / changelog is red.
  2. examples/minimal/README.md still says the Role "lets the server create and delete Jobs and pods"; with this Role it creates and deletes Jobs and only lists pods.
  3. The image test holds the example to the newest release, so nothing else moves; but say in the README's "What to replace" or beside fsGroup that this line is the one place where the example departs from the deployment it was taken from, since the ticket has it differ by the placeholders alone.
Read at 10209f5. The trimmed Role agrees with the calls: the server makes these and no other at v0.3.3 and on main (internal/kube/jobs.go; the only clients are client-go's typed one and `rest`): Jobs create, delete, get, list; pods list; pods/log get; and on main Secrets create, update, delete. Nothing watches, and a Job's pods are deleted by the cluster's collector, not by the server. Before it merges: 1. Rebase onto main: 0.4.0 is cut, the pull request conflicts and `test / changelog` is red. 2. `examples/minimal/README.md` still says the Role "lets the server create and delete Jobs and pods"; with this Role it creates and deletes Jobs and only lists pods. 3. The image test holds the example to the newest release, so nothing else moves; but say in the README's "What to replace" or beside `fsGroup` that this line is the one place where the example departs from the deployment it was taken from, since the ticket has it differ by the placeholders alone.
mikluko force-pushed example-role-fsgroup from 10209f507f
Some checks failed
test / changelog (pull_request) Failing after 5s
test / go (pull_request) Successful in 58s
to 6143481cec
All checks were successful
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 53s
2026-11-16 08:25:25 +00:00
Compare
examples/minimal: the pack's range moves with the image, and a test holds it
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 16s
test / go (pull_request) Successful in 52s
9e3d41076d
The example imported the pack as ^0.3 beside an image of 0.4.0. A caret below
1.0 holds the minor, so the range now admits the newest release in CHANGELOG.md
as the image names it, and a test fails the release's pull request that does not
move it. The deployed city moves its range and its lock with the image.

Assisted-By: Claude <noreply@anthropic.com>
Merge main into example-role-fsgroup
Some checks failed
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 15s
test / go (pull_request) Failing after 38s
8514f43bfe
Assisted-By: Claude <noreply@anthropic.com>
Author
Owner

Read at 8514f43: the Role, the README's Role sentence, the departures and the pack test hold, and the Role is what the city has run under since 08:47:06Z (two starts seen, no refusal).

One line: the README's row says "the pack's range, ^0.4" while city/pack.toml has ^0.5. Name the key and not its value (version of [imports.roomcity]), so that the row does not go stale at each minor.

test / go is red on this head for a reason that is not this pull request's: TestAnAgentThatEndsAtOnceIsAskedWhyAndSays in internal/host, which fails on main as well, 3 times in 300 here with GOMAXPROCS=1 (the agent's last words are missing from why it ended: "exit status 3" is there, "cannot make the config directory" is not). The push for the line above runs the check again; the test wants its own fix.

Read at 8514f43: the Role, the README's Role sentence, the departures and the pack test hold, and the Role is what the city has run under since 08:47:06Z (two starts seen, no refusal). One line: the README's row says "the pack's range, `^0.4`" while `city/pack.toml` has `^0.5`. Name the key and not its value (`version` of `[imports.roomcity]`), so that the row does not go stale at each minor. `test / go` is red on this head for a reason that is not this pull request's: `TestAnAgentThatEndsAtOnceIsAskedWhyAndSays` in internal/host, which fails on main as well, 3 times in 300 here with `GOMAXPROCS=1` (the agent's last words are missing from why it ended: "exit status 3" is there, "cannot make the config directory" is not). The push for the line above runs the check again; the test wants its own fix.
examples/minimal: the README names the pack's range by its key
All checks were successful
image / image (pull_request) Successful in 3s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 39s
985705053b
Assisted-By: Claude <noreply@anthropic.com>
Merge main into example-role-fsgroup
Some checks failed
test / changelog (pull_request) Successful in 6s
image / image (pull_request) Successful in 16s
test / go (pull_request) Failing after 39s
329cf0631a
Assisted-By: Claude <noreply@anthropic.com>
mikluko deleted branch example-role-fsgroup 2026-11-16 08:53:04 +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!57
No description provided.