Reference

  • Using Finalizers: Finalizers are a mechanism toexecute any custom logic related to a resource before it gets deleted fromKubernetes cluster.

  • Webhooks: Webhooks are HTTP callbacks, there are 3types of webhooks in k8s: 1) admission webhook 2) CRD conversion webhook 3)authorization webhook

    • Admission Webhook: Admission webhooks are HTTPcallbacks for mutating or validating resources before the API server admitthem.