[Phase 0] Create gitea-image-automation-token secret for Flux ImageUpdateAutomation #57
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Problem
flux/image-automation/imageupdateautomation.yamlis committed and reconciled, but it requires a dedicated Kubernetes secretgitea-image-automation-tokeninflux-systemso Flux can push image-tag update commits back to theleeworks-agents/api-companyrepository. This secret is documented in a comment inside the manifest but is not indocs/secrets-checklist.mdand has no tracking issue.Without this secret the
ImageUpdateAutomationobject will fail and new image tags pushed toregistry.leeworks.devwill not automatically update the HelmRelease values — defeating the purpose of the image automation pipeline.What to do
Generate a Gitea token for the
leeworks-agentsaccount withwrite:repositoryscope (the existinggitea-leeworks-agents-tokenonly hasread:repository— verify scope and either reuse or create a new one).Create the secret:
Patch the
api-companyGitRepository influx-systemto reference this secret (or updateflux/api-company-source/gitrepository.yamlto use it if the write-scope token differs from the read-scope one).Add this secret to
docs/secrets-checklist.mdas item 9.Acceptance criteria
kubectl get secret gitea-image-automation-token -n flux-systemexistsflux get imageupdateautomations -n flux-systemshowsREADY=Trueforapi-companyleeworks-agents/api-companyupdating the# {"$imagepolicy": ...\}setter linesdocs/secrets-checklist.mdupdated (PR against this repo)Dependencies
flux/api-company-source/gitrepository.yamlto reference the write-scoped secret@devops triage — Assessed as a Phase 0 P2 blocker for Flux ImageUpdateAutomation.
Action taken: Added item 9 to
docs/secrets-checklist.mdwith full creation commands. Also updatedflux/image-automation/imageupdateautomation.yamlto includepush.secretRef: gitea-image-automation-tokenso the manifest now explicitly declares the required write-scoped secret. Merged via PR #59.The operator must:
write:repositoryscope.flux get imageupdateautomations -n flux-systemshowsREADY=Truefor api-company.The existing
gitea-leeworks-agents-token(read:repository only) should remain for Flux GitRepository pulls and is not replaced by this new secret.