Feature request
Main InstallerSet upgrades should use a readiness-gated handoff instead of deleting the current InstallerSets before creating their replacements.
Today, a release-version mismatch calls CleanupMainSet, and the old InstallerSet finalizers delete resources from the previous manifests before replacement sets are created:
This can temporarily remove shared ConfigMaps, RBAC, Services, APIService objects, and admission webhook configurations during an operator upgrade.
Implement a blue/green-style handoff for main InstallerSets:
- Keep the current generation while creating the desired-generation static and workload InstallerSets.
- Make replacement creation idempotent so reconciliation can resume after a partial failure.
- Wait for all desired-generation InstallerSets to report Ready.
- Retire only the explicitly identified old-generation InstallerSets.
- During old-generation finalization, preserve resources also represented by a non-deleting successor InstallerSet and delete only resources absent from every successor.
- Keep full cleanup when a component is removed and no successor exists.
The design should support the static/deployment split and the optional StatefulSet path without using broad CleanupMainSet selection during retirement.
Acceptance criteria:
- Shared resources remain available until the desired generation is Ready.
- Resources removed from the desired manifests are still pruned after a successful handoff.
- Interrupted replacement creation resumes without producing duplicate sets.
- Component deletion retains the existing cleanup behavior.
- Tests cover generation coexistence, readiness-gated retirement, partial creation, shared-resource preservation, and obsolete-resource deletion.
Related work: #374 introduced InstallerSets for pruning resources removed by new releases, and #2121 guards reconciliation when a resource is already being deleted.
Use case
An operator upgrade changes the main InstallerSet release version while Tekton components continue serving requests. The old and desired generations share resources such as configuration, admission registration, RBAC, and Services. Those resources must remain present until the desired generation is healthy; otherwise the upgrade can create an admission or service-availability gap even though the resources will be recreated later.
Feature request
Main InstallerSet upgrades should use a readiness-gated handoff instead of deleting the current InstallerSets before creating their replacements.
Today, a release-version mismatch calls
CleanupMainSet, and the old InstallerSet finalizers delete resources from the previous manifests before replacement sets are created:MainSetcleans up onErrVersionDifferentTektonInstallerSetfinalization deletes its manifest resourcesThis can temporarily remove shared ConfigMaps, RBAC, Services, APIService objects, and admission webhook configurations during an operator upgrade.
Implement a blue/green-style handoff for main InstallerSets:
The design should support the static/deployment split and the optional StatefulSet path without using broad
CleanupMainSetselection during retirement.Acceptance criteria:
Related work: #374 introduced InstallerSets for pruning resources removed by new releases, and #2121 guards reconciliation when a resource is already being deleted.
Use case
An operator upgrade changes the main InstallerSet release version while Tekton components continue serving requests. The old and desired generations share resources such as configuration, admission registration, RBAC, and Services. Those resources must remain present until the desired generation is healthy; otherwise the upgrade can create an admission or service-availability gap even though the resources will be recreated later.