How to upgrade a Livepatch on-prem deployment

To upgrade the livepatch on-prem deployment, each application needs to be upgraded separately:

$ juju upgrade-charm haproxy
$ juju upgrade-charm postgresql
$ juju upgrade-charm ubuntu-advantage
$ juju upgrade-charm livepatch

After upgrading the livepatch application, a schema upgrade may be required. This will be indicated in the application’s status in juju status. In such a case, run the command:

$ juju run-action livepatch/leader schema-upgrade --wait