GithubHelp home page GithubHelp logo

Comments (2)

enisoc avatar enisoc commented on September 25, 2024

Great idea! I thought about something like this but figured I would prioritize emitting events automatically first (#7). Metacontroller knows enough to emit things like: sync hook error, create/update/delete child object, rolling update started/finished, etc.

Do you have examples of events that you'd want to emit manually as part of the webhook response? It would be useful to see the types of things that could only be done if we add this manual interface.

from metacontroller.

christopherL91 avatar christopherL91 commented on September 25, 2024

Hi @enisoc sorry for not coming back to you. I had this particular function in mind:

https://github.com/kubernetes/client-go/blob/master/tools/record/event.go#L294-L296

So an idea is to let the user specify events to be logged by applying an extra field that the user returns in the response.

Example:

{
"events": {
  "warnings": [
    {"timestamp": "2009-11-10T23:00:00Z", "message": "hello world"}
   ]
},
"status": {},
"children": {}
}

By using the PastEventf we could generate events that has 'already happened'. But if you sync say every 10s this becomes a minor issue.

from metacontroller.

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.