rancher / elemental-operator

The Elemental operator is responsible for managing the OS versions and maintaining a machine inventory to assist with edge or baremetal installations.
Apache License 2.0
40 stars 17 forks source link

Update channels #781

Closed davidcassany closed 2 months ago

kkaempf commented 2 months ago

Also adding some comments and examples into the "code" would help us still understand this in a couple of weeks/months from now ;-)

davidcassany commented 2 months ago

this needs respective tests, ideally in the same commit

Sure, this is still a draft. I needed to create a PR to actually test real OBS builds. My concern is how to manage the new channel approach across updates, up to now we had a single channel resource that was being updated on operator updates, but with the approach we are aiming to follow this is not necessarily the case as channels should be tied to OS streams not operator versions. That means there could be a channel replacement on operator updates (e.g. from 5.5 channel to 6.0 channel). The question is how to handle the former channel, from Helm PoV these are two channels and the upgrade means deleting the old one and creating a new one. I am experimenting with these sort of use cases here in this PR.