uselagoon / remote-controller

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

Feature flag variable pass through #141

Closed shreddedbacon closed 2 years ago

shreddedbacon commented 2 years ago

Lagoon builds have the ability to have any number of potential feature flags used. In all cases, they are prepended with LAGOON_FEATURE_FLAG_.

The remote-controller should pass through any supplied LAGOON_FEATURE_FLAG_X variables in the deployment of the controller into build pods, as build pods are what consume these variables.

At the moment they're required to be set by a flag, and then coded in the controller to be passed in, long term this is not really supportable if we have to release new versions of the controller to support arbitrary feature flags in the build pods.