uselagoon / remote-controller

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

refactor: allow overriding harbor cleanups by labelling secret #227

Closed shreddedbacon closed 1 year ago

shreddedbacon commented 1 year ago

Checklist

When migrating environments between clusters, if harbor cleanup is enabled, when the source environment is deleted, it will delete the images that the destination environment uses.

This adds labels that can be added to the source environment lagoon-internal-registry-secret secret, that will make sure that the remote-controller won't remove the images from harbor when the environment is eventually pruned.

Closing issues

closes #60