Git Product home page Git Product logo

Comments (5)

mmanciop avatar mmanciop commented on September 24, 2024

When you remove the ingress relation, it must be able to tell you that you no longer have that URL available, and that is what None is for, which the requirer charm must read as "I have no (longer?) an ingress URL". We could probably change it so that, if the relation is established (relation_created and relation_joined), the event does not fire in the requirer until you have an URL, but given #28 in flight, I think we need to see how that affects the behavior first.

from traefik-k8s-operator.

Abuelodelanada avatar Abuelodelanada commented on September 24, 2024

In spite of the fact that this is a great example to discuss if we should condense 2 situations (add a relation and remove a relation) in only one custom event (ingress_changed), the problem I see is that we are emitting not one, but three events when a relation is created.
As you said, maybe we can avoid emitting the event until we have an URL. But if we do that, we are still emitting two events with the same information.

from traefik-k8s-operator.

mmanciop avatar mmanciop commented on September 24, 2024

The reason to have one event, is that most charms I can think off, will react to it the same way: "Got some configs to change". Having multiple events that are reacted to the same way, seems like unnecessary complication to me.

from traefik-k8s-operator.

mmanciop avatar mmanciop commented on September 24, 2024

For example: Grafana, Prometheus and Alertmanager, likely even Loki: they mostly need to change a parameter that sets their externally visible URL. The value to set changes on whether you get an ingress URL or not, but the logic is 95% the same.

from traefik-k8s-operator.

mmanciop avatar mmanciop commented on September 24, 2024

For example: Grafana, Prometheus and Alertmanager, likely even Loki: they mostly need to change a parameter that sets their externally visible URL. The value to set changes on whether you get an ingress URL or not, but the logic is 95% the same.

from traefik-k8s-operator.

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.