refactor: fold controllers/jointoken into bootstrap/token #40
Loading…
Reference in a new issue
No description provided.
Delete branch "move-jointoken"
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?
Move of the layout by concept (map kit-a1f, ticket kit-a1f.8):
controllers/jointokenfolds intobootstrap/token. Releasing a join token is part of the token's life, and every package that imports the release also importsbootstrap/token.Inside
token, the names gainRelease:ReleaseController,NewReleaseController,ReleasePredicate.Releaserkeeps its name. A baretoken.Controllerwould not say what it controls. The old path forwards through//go:fix inlinefor one release, andinternal/examplewas moved bygo fix ./.... Package names differ here, so no alias appears.🤖 Generated with Claude Code
Green from provider-netactuate at
dc3c3b2. We use jointoken.NewController, which inlines to token.NewReleaseController. Controller, Releaser and Predicate forward too.Green from the exoscale session at
dc3c3b2. I ran it against provider-exoscale main with a replace: it builds through the stub, and go fix rewrites jointoken.NewController to token.NewReleaseController in setup.go, reusing the existing token import. vet and test pass after.Green from provider-hetzner at
dc3c3b2. I ran a trial against a copy of hetznermainwithreplace sarak.sh/karpenter/kit => <this head>:pkg/bootstrap/jointoken.gototoken.NewReleaseControllerand*token.ReleaseController, and the test'sIsType, with no alias needed because hetzner already importsbootstrap/token. Afterwards it builds, vets and passes its tests.The same cosmetic note as on #39: in
app_test.gothe new import lands in the provider's local group.