ci: repo-declared CI scaffold (lab/automation#9) #62
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lab/authz-bridge!62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/repo-declared-scaffold"
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?
Repo-declared CI scaffold per lab/automation#9 — the reference shape the onboarding generators (lab/automation#10) will copy.
What's in it
.ci/kustomization.yaml— namespaceci, common labelci/repo: lab-authz-bridge.ci/tag-build-sensor.yaml— repo-prefixed sensor (authz-bridge-tag-build): filters the shared webhook EventSource events to tag pushes oflab/authz-bridgeand submits theci-namespacego-build-pushworkflow template withrepo+refparams from the eventNotes / deviations from the issue text
ci/repo: lab/authz-bridge, but Kubernetes label values cannot contain/— usinglab-authz-bridge(full_name with/→-).k8s/starter dropped (agreed in issue discussion): authz-bridge is a system service deployed by Flux fromdeployments/kustomization/(see lab/clusters) — it has no app Application and needs nok8s/directory. The app-manifest-location mechanism (per-repo ApplicationSet + repo-declared.ci/apps.yaml) is scoped into lab/automation#10.ci-argocd— the ci-namespace destination SA, the only SA inciwithcreateon workflows; the argo CLI in the sensor pod authenticates as it, so the submitted workflow lands inciand resolves the ci-namespace template.Validation
kustomize build .ci/cleankubectl apply -k .ci/ --dry-run=serveragainst mini: validates against the live argo-events v1.9.10 Sensor CRDdefault.<eventSource>.<event>(no namespace), both EventBuses (automation,ci) are nameddefaulton the shared NATS server, and the sensor reconciler never fetches the EventSource object — so thewebhooksource inautomationis consumable fromci.Remaining steps (lab/automation#9)
projects/→argocd)lab/authz-bridgefrom the central tag-build sensor allowlist (lab/automation) so only the repo sensor fires