AmitKumarDas / metac

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

add example that showcases `defaulting` controller #70

Open AmitKumarDas opened 4 years ago

AmitKumarDas commented 4 years ago

UseCase: As a developer who uses metac to build my controller, I need metac to support setting of defaults against my watched resource specifications. These defaults should be set against the fields of the resource that are not set.

NOTE: This controller is expected support GitOps requirements. In other words the specifications without defaults are stored in my git repository. However, the resource in etcd has the required defaults set. There should not be any loss of values due to differences from my git version versus the etcd version.

Solution: Metac as such does not need any changes to support this requirement. We need to verify by adding following items:

AmitKumarDas commented 4 years ago

We can try below metacontrollers to prove if Metac supports this usecase: