Skip to content

馃尡 Alias the latest CAPH API version as infrav1 - #2317

Draft
abdullah599 wants to merge 1 commit into
mainfrom
abd/issue-2092
Draft

abdullah599 wants to merge 1 commit into
mainfrom
abd/issue-2092

Conversation

@abdullah599

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR adopts the Cluster API import alias convention for the CAPH API packages. Every hand-written import of api/v1beta2 now uses the alias infrav1, and every import of api/v1beta1 uses infrav1beta1. This way the latest version keeps the same short alias when we move to a new API version, the same as clusterv1 in Cluster API. A new importas rule in .golangci.yaml makes the linter enforce both aliases.

Which issue(s) this PR fixes:
Fixes #2092

Special notes for your reviewer:
None.

TODOs:

  • squash commits
  • include documentation
  • add unit tests

@abdullah599 abdullah599 self-assigned this Oct 9, 2026
@github-actions github-actions Bot added size/XXL Denotes a PR that changes 2000+ lines, ignoring generated files. area/test Changes made in the test directory area/code Changes made in the code directory area/api Changes made in the api directory labels Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api Changes made in the api directory area/code Changes made in the code directory area/test Changes made in the test directory size/XXL Denotes a PR that changes 2000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v1beta2 migration: adopt CAPI-style import aliases for the CAPH API packages

1 participant