Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add example that showcases defaulting controller #70

Open
AmitKumarDas opened this issue Dec 11, 2019 · 1 comment
Open

add example that showcases defaulting controller #70

AmitKumarDas opened this issue Dec 11, 2019 · 1 comment
Labels
defaulting examples gitops good first issue Good for newcomers help wanted Extra attention is needed integration test Testing Metac on Kubernetes

Comments

@AmitKumarDas
Copy link
Owner

AmitKumarDas commented Dec 11, 2019

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:

  • add example(s) that showcases above usecase
  • add integration test(s) that showcases above usecase
@AmitKumarDas
Copy link
Owner Author

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

  • DecoratorController
  • GenericController

@AmitKumarDas AmitKumarDas added defaulting help wanted Extra attention is needed examples integration test Testing Metac on Kubernetes good first issue Good for newcomers labels Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defaulting examples gitops good first issue Good for newcomers help wanted Extra attention is needed integration test Testing Metac on Kubernetes
Projects
None yet
Development

No branches or pull requests

1 participant