/srv/irclogs.ubuntu.com/2021/02/12/#smooth-operator.txt

mupPR operator#478 opened: Add basic workload hook support <Created by hpidcock> <https://github.com/canonical/operator/pull/478>01:16
=== Spads_ is now known as Spads
tomwardillhi, is it known that none of the links work on https://discourse.charmhub.io/t/documentation-operator-framework/3394 ? Particuarly the 'Add configuration', etc14:44
JohnMeinel[m]<tomwardill "hi, is it known that none of the"> I was not specifically aware, though looking at the source these are explicitly done [link]() is creating a spot where you want a link but giving it no target.15:08
tomwardillyes, it doesn't look like those documents actually exist. Or I can't find them (which is entirely possible!)15:09
JohnMeinel[m]I'm pretty sure it is plans for future docs15:09
tomwardillah, because at the moment, I can't deploy my charm created by `charmcraft init` because juju says my config is empty15:11
tomwardilland I can't find any documentation on what the config should look like15:11
JohnMeinel[m]hm, something else seems broken. Search finds: <https://juju.is/docs/search?q=config+yaml>15:12
JohnMeinel[m]<https://juju.is/docs/configuring-applications> and <https://juju.is/docs/creating-config-yaml-and-configuring-charms>15:12
JohnMeinel[m]that seems much more serious15:12
JohnMeinel[m](both of those 404 but exist in indexes and in my browser history)15:12
tomwardillah! That would explain it :)15:13
JohnMeinel[m]Can you see: <https://discourse.charmhub.io/t/creating-config-yaml-and-configuring-charms/1039>15:16
JohnMeinel[m]<https://discourse.charmhub.io/t/configuring-applications/1059>15:17
tomwardillI can, yes15:17
JohnMeinel[m]ok, that is the source post that should be building the other docs, I'll dig and see why they aren't getting HTML pages15:18
tomwardillthanks :)15:27
knkski[m]jam: do we have an equivalent operator framework relation for this? https://git.launchpad.net/generic-ip-port-user-pass-charm-interface18:43
knkski[m]The context is that I'm taking a look at converting this charm to use the operator framework: https://github.com/juju-solutions/charm-minio18:44
jam@knkski[m], I'm not aware of one, though it would be pretty trivial to implement. JoseMasson: do you or one of the observability team know of one? I know you were talking about some common base classes18:45
JoseMassonHi /jam at the moment we don't have one.18:56
knkski[m]JoseMasson: what existing relations are there for the operator framework that i can take a look at?19:10
JoseMassonknkski[m]: If I understand ok what you are looking for, you can take a look at this (work in progress) charm: https://github.com/canonical/graylog-operator19:22
JoseMassonPlease let me know if that example is useful19:23
knkski[m]JoseMasson: Thanks, that looks interesting. I see that there's a few relations defined in metadata.yaml, where are `graylog-peers`, `elasticsearch-datastore`, and `mongodb` defined?19:24
JoseMassonknkski[m]: I'm sure bthomas can help you better than I can, but I think you might want to see: https://github.com/canonical/graylog-operator/blob/main/src/charm.py#L11519:51
knkski[m]JoseMasson: is there documentation around `event.relation.data` somewhere?19:59
knkski[m]it looks like i don't actually need an intermediate layer codebase such as https://git.launchpad.net/generic-ip-port-user-pass-charm-interface, i just set stuff and retrieve from `event.relation.data`?19:59
jamknkski[m], correct20:03
knkski[m]jam: so what exactly does `mongodb` mean then here? https://github.com/canonical/mongodb-operator/blob/master/metadata.yaml#L2620:09
jamknkski[m], if another charm has "requires: <name>: interface: mongodb" then we allow them to relate to each other20:10
knkski[m]jam: why not just `requires: [name1, name2]`?20:11
jamknkski[m], because you might provide different types of data with the same protocol20:11
jameg an http endpoint that provides admin on one relation and website on the other20:12
jamthey are both coordinated as 'http' but the content is different20:12
knkski[m]jam: so you'd have `requires: http: interface: admin`?20:13
jamknkski[m], wrong way around. provides: admin: interface: http20:13
jamthe interface needs to match between provides and requires, the other name is the word that is meant to convey to humans the purpose of the relation20:14
knkski[m]jam: so the requirer just says that it requires `http`, and doesn't know if it's been connected to `admin: interface: http` or `website: interface: http`?20:14
jamcorrect. you might connect http to haproxy, which doesnt care about the content, and could proxy either20:15
JoseMassonknkski[m]: sorry for the delay, i was away from keyboard, the documentation we have now is here: https://ops.readthedocs.io/en/latest/21:20

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!