Skip to content

integrations/operator: add multi-version support in crdgen#36715

Merged
hugoShaka merged 1 commit intomasterfrom
hugo/crdgen-multi-version
Jan 24, 2024
Merged

integrations/operator: add multi-version support in crdgen#36715
hugoShaka merged 1 commit intomasterfrom
hugo/crdgen-multi-version

Conversation

@hugoShaka
Copy link
Copy Markdown
Contributor

@hugoShaka hugoShaka commented Jan 15, 2024

This is part 1 of the RFD-0160 implementation. Part of #20261

The PR contains the following changes:

  • add multi-version support by creating new kinds. This is currently done via an override to maintain compatibility. At some point, we might migrate unversioned kinds (TeleportRole) to versioned kinds (TeleportRoleV5) and remove the override
  • unify all resource statuses in a single struct. This simplifies the CRD building because we are not trying to guess which package is correct anymore when parsing go's AST
  • update crdgen snapshots

Note for reviewers: the changeset might seem large, but the changes are split into commits that are much more reviewable. You only need to review the first two commits.

@hugoShaka hugoShaka added the no-changelog Indicates that a PR does not require a changelog entry label Jan 15, 2024
@hugoShaka hugoShaka force-pushed the hugo/crdgen-multi-version branch from f6e73d9 to fbea4f2 Compare January 17, 2024 22:56
Comment thread integrations/operator/crdgen/schemagen.go Outdated
Comment thread integrations/operator/crdgen/schemagen.go
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from tigrato January 23, 2024 19:40
@hugoShaka hugoShaka force-pushed the hugo/crdgen-multi-version branch 4 times, most recently from 106a1f8 to 538a0ac Compare January 24, 2024 00:12
@public-teleport-github-review-bot
Copy link
Copy Markdown

@hugoShaka - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes.

… in crdgen

The commit contains the following changes:

- add multi-version support by creating new kinds. This is currently done via an override to maintain compatibility. At some point, we might migrate unversioned kinds (TeleportRole) to versioned kinds (TeleportRoleV5) and remove the override
- unify all resource statuses in a single struct. This simplifies the CRD building because we are not trying to guess which package is correct anymore when parsing go's AST
- update crdgen snapshots

This PR does not update the base CRDs in the operator or the Hlem chart. This will happen in the next PR, adding go types and controller support.

Note for reviewers: the changeset might seem large, but the changes are split into commits that are much more reviewable. You only need to review the first two commits.
@hugoShaka hugoShaka force-pushed the hugo/crdgen-multi-version branch from 538a0ac to 2259576 Compare January 24, 2024 01:01
@hugoShaka hugoShaka added this pull request to the merge queue Jan 24, 2024
Merged via the queue into master with commit 7b02cad Jan 24, 2024
@hugoShaka hugoShaka deleted the hugo/crdgen-multi-version branch January 24, 2024 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/lg

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants