Skip to content

refactor(github): one team resource per file in deploy/teams/#71

Merged
botantler-1[bot] merged 2 commits into
mainfrom
claude/teams-one-resource-per-file
Jun 25, 2026
Merged

refactor(github): one team resource per file in deploy/teams/#71
botantler-1[bot] merged 2 commits into
mainfrom
claude/teams-one-resource-per-file

Conversation

@devantler

Copy link
Copy Markdown
Contributor

🤖 Generated by the Daily AI Assistant

Applies the one-resource-per-file convention to the last multi-doc file in
deploy/: deploy/teams/maintainers.yaml held 13 resources (the Team, its
TeamMembership, and 11 TeamRepository grants). Split into one file per resource
(filename = resource name, matching deploy/repositories/); the directory-level
explanation moves to deploy/teams/kustomization.yaml.

Behaviour-preserving — pure file reorganisation, no resource changed: the rendered
set of 13 team resources is byte-identical before/after (verified via a
kubectl kustomize deploy/ diff), and every resource passes kubectl apply --dry-run=server against the live CRDs.

Companion to #70 (which applies the same convention to deploy/rulesets/); together
they make every file in deploy/ one resource.

Per the maintainer's one-resource-per-file preference: split the 13-resource
deploy/teams/maintainers.yaml (Team + TeamMembership + 11 TeamRepository) into
one file per resource (filename = resource name, matching ../repositories/).
The directory-level explanation moves to teams/kustomization.yaml.

Behaviour-preserving: the rendered set of 13 team resources is byte-identical
before/after the split (verified via kustomize build diff).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@devantler devantler marked this pull request as ready for review June 25, 2026 18:09
…enames

deploy/teams/ mixed three kinds (Team, TeamMembership, TeamRepository) under
ambiguous maintainers-<x> names. Split into one subfolder per CR kind, each with
an active-verb filename pattern so a file's purpose is clear and files in a folder
share one convention:

- teams/            — Team           (maintainers.yaml)
- team-memberships/ — TeamMembership (add-<user>-to-<team>.yaml)
- team-repositories/— TeamRepository (grant-<team>-on-<repo>.yaml)

Pure rename + kustomization re-wiring; resource bodies (incl. metadata.name and
crossplane.io/external-name) are unchanged, so there is no Crossplane resource
churn. `kubectl kustomize deploy/` validated (1 Team, 1 TeamMembership, 11
TeamRepository).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@botantler-1 botantler-1 Bot enabled auto-merge (squash) June 25, 2026 18:19
@botantler-1 botantler-1 Bot merged commit a581d74 into main Jun 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant