Describe the bug
Active/standby switch sets the value the environment variable LAGOON_ROUTE to the auto-generated route even when the value has been set for a projects environment in the API.
To Reproduce
- enable active/standby for a project
- set LAGOON_ROUTE for the production and standby environments via the CLI/API
- trigger an active/standby switch
- deploy the production environment
- trigger an active/standby switch
Expected behavior
If a project has the LAGOON_ROUTE variable set for an environment in Lagoon’s API that value is set in the lagoon-env secrets for the namespace and consequently injected into the containers as part of build-deploy.
Actual behaviour
The auto-gen route is set in the lagoon-env secrets object.
Additional context
When an active/standby switch occurs the production ingress object defined in .lagoon.yml is moved to the standby environment.
We utilise this feature to then execute a deployment of the production environment that includes post-deployment steps which rely on the value before triggering the active/standby switch again to return the ingress object back to the production environment.
Describe the bug
Active/standby switch sets the value the environment variable
LAGOON_ROUTEto the auto-generated route even when the value has been set for a projects environment in the API.To Reproduce
Expected behavior
If a project has the LAGOON_ROUTE variable set for an environment in Lagoon’s API that value is set in the lagoon-env secrets for the namespace and consequently injected into the containers as part of build-deploy.
Actual behaviour
The auto-gen route is set in the lagoon-env secrets object.
Additional context
When an active/standby switch occurs the production ingress object defined in .lagoon.yml is moved to the standby environment.
We utilise this feature to then execute a deployment of the production environment that includes post-deployment steps which rely on the value before triggering the active/standby switch again to return the ingress object back to the production environment.