uselagoon / remote-controller

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

use cluster names in robot account names #150

Closed shreddedbacon closed 2 years ago

shreddedbacon commented 2 years ago

Checklist

Some cases it is useful to know which cluster generated the robot account. This is especially handy when doing migrations that share the same harbor.

This adds the cluster name to the robot account name.

Now robot accounts will be named like so, with a hashed version of the cluster name. A description is also added to the account to indicate which cluster it is in.

# harbor 2.1.x
robot$environment-abc123df
# harbor 2.2.x
robot$project+environment-abc123df