uselagoon / remote-controller

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

feat: add organization labels to namespace and build/task pods #238

Closed shreddedbacon closed 10 months ago

shreddedbacon commented 11 months ago

Checklist

Add new organization.lagoon.sh/id and organization.lagoon.sh/name labels to namespaces and build/task pods if the information is provided by Lagoon builds/tasks. These will only be provided to builds and tasks once https://github.com/uselagoon/lagoon/pull/3596 is merged and released.

It also injects the following variables into the build pod itself, so that the build-deploy-tool will be able to use them:

Part of work for https://github.com/uselagoon/lagoon/issues/3595

closes #237

shreddedbacon commented 11 months ago

Just for completion's sake, are there any circumstances you can think of where the org ID comes through, but the Name doesn't, or vice versa?

With the proposed changes to the API it shouldn't happen. I'm happy to refactor it a bit though