Giter Site home page Giter Site logo

Comments (7)

adriffaud avatar adriffaud commented on July 17, 2024 1

Yes sorry! Thanks for the additions!

from bonny.

mruoss avatar mruoss commented on July 17, 2024

Oooh right. Nice catch. I was confused at first as I am using the term "descendant" for the descending object, i.e. the ones created by a controller. If I get you correctly, you have multiple handlers/controllers for the same query. I think it is clear.

from bonny.

mruoss avatar mruoss commented on July 17, 2024

Ooh no now I think I understand. You ARE talking about descendants. So... what stops you from implementing a dispatching controller? This way you wont need to watch the same query multiple times.

from bonny.

adriffaud avatar adriffaud commented on July 17, 2024

I am indeed talking about objects created by controllers 🙂
And I guess I was too focused on a controller in a kubernetes sense to think of a dispatching controller at the top 😅
I will try that, thanks!

from bonny.

mruoss avatar mruoss commented on July 17, 2024

Yeah so with Bonny 1.0 controllers are just Pluggable steps. Which makes the whole thing... well... pluggable. I am thinking about adding something like a Bonny.Pluggable.DispatchToOwner step. But ain't there yet with my thinking process.

Instead of using ownerReferences (which technically is a list anyway) I am thinking about adding a label to descendants like example.com/owning-controller: Elixir.MyOperator.Controller.MyController

from bonny.

mruoss avatar mruoss commented on July 17, 2024

@adriffaud On master I have added the Bonny.Pluggable.AddManagedByLabelToDescendants to simplify adding that label to all descendants. You can just plug in into your operator and all registered descendants will have that label.

I'm not proceeding with Bonny.Pluggable.DispatchToOwner as I don't see a simple step handling it all. Instead it would be a "add this step and do that in your controller" etc. So you'll have to implement your dispatching mechanism for now. I see however a neat solution where you would add a "your-operator.com/owning-controller` annotation to all descendants and then use that info to dispatch. But obviously you can also use the ownerReferences field.

from bonny.

mruoss avatar mruoss commented on July 17, 2024

@adriffaud can we close this?

from bonny.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.