Skip to content

Commit

Permalink
Add more about spec/status in tech controller
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Godding Boye <[email protected]>
  • Loading branch information
erikgb committed Nov 26, 2024
1 parent 78d85b1 commit 6b04cd9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion design/20241124-rename-bunde-to-clusterbundle.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ When the functional controller is migrated to target `ClusterBundle`, we want to
controller targeting the now deprecated `Bundle` resource.

This controller should just create or update the `ClusterBundle` with the same name as the reconciled `Bundle`.
Since the APIs should have identical `spec`, this should be a simple controller.
Since the APIs should be quite similar, this should be a simple controller.

- `Bundle` `.spec` should be copied (and eventually slightly converted) into `ClusterBundle` `.spec`
- `Bundle` `.status` should be updated from `ClusterBundle` `.status`

To allow a user to migrate their resources from `Bundle` to `ClusterBundle`, the controller should not act
on `Bundle` delete events - nor should it add an owner reference to `ClusterBundle` to avoid the Kubernetes garbage collector
Expand Down

0 comments on commit 6b04cd9

Please sign in to comment.