uselagoon / remote-controller

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

add LAGOON_NEW_DEPLOYMENT or similar variable on first build #155

Open tobybellwood opened 2 years ago

tobybellwood commented 2 years ago

It would be handy to be able to utilise a variable in the build that could determine if it's the first deployment into a namespace.

This can then be used in pre/post rollout tasks without having to workaround

This could possibly be implemented in the remote-controller

shreddedbacon commented 2 years ago

Moved to remote-controller as this is where this logic will need to live. Basically when the namespace is created, we can inject this variable into the build pod.

For naming: