examples/minimal: the Role the server calls need, and fsGroup for a block volume #57
Loading…
Reference in a new issue
No description provided.
Delete branch "example-role-fsgroup"
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?
From roomcity-ee's read of the example as a stranger. (1)
fsGroup: 1000in 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.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 andrest): 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:
test / changelogis red.examples/minimal/README.mdstill says the Role "lets the server create and delete Jobs and pods"; with this Role it creates and deletes Jobs and only lists pods.fsGroupthat 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.10209f507f6143481cecRead 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" whilecity/pack.tomlhas^0.5. Name the key and not its value (versionof[imports.roomcity]), so that the row does not go stale at each minor.test / gois red on this head for a reason that is not this pull request's:TestAnAgentThatEndsAtOnceIsAskedWhyAndSaysin internal/host, which fails on main as well, 3 times in 300 here withGOMAXPROCS=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.