microk8s icon indicating copy to clipboard operation
microk8s copied to clipboard

Ability to check if addons are out of date

Open jack1902 opened this issue 1 year ago • 4 comments

Summary

Currently using microk8s addons i cannot tell if addons are out of date between releases. Whilst i can check release-notes and compare versions, it would be ideal to have a command such as microk8s addons --check-for-updates or something similar such that i can re-run ansible playbooks without nuking the DNS addon resulting in chaos inside my cluster for a period of time on each rerun.

The main danger i forsee is that i can't update an addon repository without potentially breaking the disable command. As noted in another issue, if you update the addon-repository first before disabling any enabled addons, it might not uninstall properly. I originally thought i would just "check for updates" at the addon repo level but doing that results in disable not functioning

Why is this important?

Currently, i am using ansible to upgrade microk8s in various environments, upgrading microk8s alone isn't enough as addons also have to be updated. Currently i only make use of the dashboard and dns addons but i am debating using coredns directly as microk8s doesn't provide an upgrade path, only one that requires a full removal and reinstall which is less than ideal for production clusters

Are you interested in contributing to this feature?

not sure how to implement it exactly, but i can look to implement it if i know where to look

jack1902 avatar Aug 08 '23 07:08 jack1902