canonical / lego-base-k8s-operator

Base library for building Lego Kubernetes operators
https://charmhub.io/lego-base-k8s
Apache License 2.0
0 stars 3 forks source link

feat: add log forwarding support #62

Closed gruyaume closed 7 months ago

gruyaume commented 7 months ago

Description

We add Log Forwarding support so that any LEGO charm can be integrated with Loki and forward its log there. This means that all Lego charms will have to have the loki_push_api charm relation interface when using this new version of the lib.

Note

Checklist:

saltiyazan commented 7 months ago

The wording here makes it sound like without log forwarding this charm will not work. Is that the intention? Or is it just the metadata.yaml file of the LEGO charms we're talking about?

I think without adding the relation to metadata.yaml of a charm implementing this lib, the charm will crash when LogForwarder tries to observe events like relation joined.