AmitKumarDas / metac

It is metacontroller and more
Apache License 2.0
57 stars 16 forks source link

feat(GenericController): add option to reconcile resources lazily #131

Open AmitKumarDas opened 4 years ago

AmitKumarDas commented 4 years ago

Problem Statement: As a DevOps admin, I want GenericController to reconcile resources lazily. For example, I would want to reconcile a CRD & its CR at the same time using a single controller. However, this results in error since this CR instance can only be reconciled after its CRD becomes available at the kubernetes api server.

WorkAround: We need to develop two or more GenericControllers to implement this. This works out since controllers are independent of each other & reconcile eventually (utilises level triggered nature of k8s controllers).

However, it will be convenient to users and involve no learning curve for users if a single GenericController can be used to solve this problem.