uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
563 stars 148 forks source link

refactor: rewrite activestandby task to remove external dioscuri requirement #3592

Closed shreddedbacon closed 10 months ago

shreddedbacon commented 11 months ago

General Checklist

Database Migrations

The existing activestandby task has a heavy dependence on dioscuri which is becoming difficult to maintain.

The goal of this task is to incorporate the functionality of dioscuri into the activestandby task that Lagoon performs. Initial support was rolled into the remote-controller under https://github.com/uselagoon/remote-controller/pull/148 which allows for this new task to do the functions it needs between the two namespaces.

What this task also does is replace the older labels on ingress from dioscuri.amazee.io to activestandby.lagoon.sh.

Also new, is when the migrations are being performed, it will add a new label activestandby.lagoon.sh/migrating=true to indicate that the migration is taking place. Once the migration has taken place, it sets it to false. This is so that other systems that may look at ingress and perform functions can potentially use this new label to take action on something, or prevent something from happening when the ingress are moved between namespaces.

Note: This has a dependency on remote-controller v0.15.4, which is contained in lagoon-remote 0.86.1 or greater.

Closing issues

closes #2607