uselagoon / remote-controller

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

Allow advanced tasks to selectively inject deployer token #133

Closed shreddedbacon closed 2 years ago

shreddedbacon commented 2 years ago

Checklist

Adds new fields to allow the deployer token and ssh key for the environment to be selectively injected into advanced tasks. By default the sshkey will be injected on all advanced tasks so no changes in lagoon would be required.

The only advanced task that uses the deployer token is the ingress migration task, so this code change defaults this task to inject this.

shreddedbacon commented 2 years ago

If we could flag the deployer token for the moment though ....

I've added the flag for this, but set the default to false. This way we can enable it if required before support in Lagoon is there.