uselagoon / remote-controller

A group of controllers for handling Lagoon builds and tasks in Kubernetes or Openshift
5 stars 1 forks source link

feat: inject lagoon api/ssh config into builds #146

Closed shreddedbacon closed 2 years ago

shreddedbacon commented 2 years ago

Checklist

We currently inject TASK_API_X and TASK_SSH_X variables into tasks so that they can consume the API if required.

Builds should also have this injected, so that there is less reliance on having the .lagoon.yml file needing to be populated with the API/SSH endpoints (see https://docs.lagoon.sh/using-lagoon-the-basics/lagoon-yml/#api and https://docs.lagoon.sh/using-lagoon-the-basics/lagoon-yml/#ssh).

The new variables are as folllows, in addition to this, these are also now injected into tasks alongside the TASK_ versions so that we can deprecate those in time.

Will need to raise follow up issue in other repositories for things that consume the .lagoon.yml in remote systems to have them updated to consume the new variables. And also update the builds to be able to inject these into the lagoon-env configmap