Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 751 Bytes

garbage_collection.md

File metadata and controls

15 lines (11 loc) · 751 Bytes

Garbage Collection Controller

The purpose of the garbage collection controller is to add a degree of fault tolerance within this service. Its job is to watch managed Certificate resources and verify that the Gateway resource still exists.

  • Gateway resources are treated as user managed and can therefore be deleted or updated at any time.
  • The garbage collection service prevents orphaned Certificate resources in the event a Gateway is deleted.

Reconcile Logic

  • For all managed Certificate Resources
  • Inspect the associated Gateway
  • If NOT exists:
    • Delete the Certificate.
  • If exists:
    • Delete the Certificate if it is not in use. This occurs when the port.name is updated by the user.