Skip to content

feat: register all platform CRDs in LineageController (9 → 21 GVKs)#20

Merged
ontave merged 2 commits into
mainfrom
session/25e-lineage-all-platform-gvks
May 12, 2026
Merged

feat: register all platform CRDs in LineageController (9 → 21 GVKs)#20
ontave merged 2 commits into
mainfrom
session/25e-lineage-all-platform-gvks

Conversation

@ontave
Copy link
Copy Markdown
Contributor

@ontave ontave commented May 7, 2026

Summary

  • RootDeclarationGVKs previously covered only 9 GVKs: 1 platform infra + 3 wrapper + 5 guardian
  • All platform operational CRDs had LineageSynced=False/LineageControllerAbsent permanently because the LineageController never processed them
  • Adds 12 new GVKs so LineageSynced transitions to True/LineageIndexCreated for every platform CR on first reconcile

New GVKs (12):

  • platform.ontai.dev: UpgradePolicy, NodeMaintenance, ClusterMaintenance, PKIRotation, ClusterReset, NodeOperation, EtcdMaintenance, TalosMachineConfigBackup, TalosMachineConfigRestore, HardeningProfile
  • infrastructure.ontai.dev: SeamInfrastructureCluster, SeamInfrastructureMachine

Total: 9 → 21

Test plan

  • TestLineageController_GVKCount: 21
  • TestAC4_AllNineRootDeclarationGVKsAreRegistered: all 21 present
  • TestLineageReconciler_AllRootDeclarationGVKsRegistered: all 21 present
  • Integration lineage test passes

ontave added 2 commits May 7, 2026 08:07
…ade types

spec.versionUpgrade=true now derives the UpgradePolicy type from which
version fields are set: talosVersion only -> UpgradeTypeTalos (existing),
kubernetesVersion only -> UpgradeTypeKubernetes, both -> UpgradeTypeStack.
Updates spec.kubernetesVersion and spec.versionUpgrade field comments to
document the three-way type derivation.
…GVKs

Adds 12 new GVKs so LineageSynced transitions from False/LineageControllerAbsent
to True/LineageIndexCreated for every platform CR on first reconcile:

  platform.ontai.dev: UpgradePolicy, NodeMaintenance, ClusterMaintenance,
    PKIRotation, ClusterReset, NodeOperation, EtcdMaintenance,
    TalosMachineConfigBackup, TalosMachineConfigRestore, HardeningProfile

  infrastructure.ontai.dev: SeamInfrastructureCluster, SeamInfrastructureMachine

Total registered GVKs: 9 → 21. GVK count tests updated accordingly.
AC-4 gate updated with the full required list.
@ontave ontave merged commit 53ad27b into main May 12, 2026
2 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