Expose Juju payloads hook tools #1377
Labels
feature
New feature or request
low priority
Non-urgent issue we may (or may not) consider later
needs design
needs more thought or spec
The
payloads
hook tools are the only ones (other than deprecated functionality and tools for working directly with K8s) that ops does not expose (theCharmMeta
object does load anypayloads
that are in the metadata).I assume this would look something like this, although I suspect we could make the DX nicer particularly the type, class, id args:
This could be used like:
To get something like:
It seems like this could be a useful way to provide more detail to the Juju admin than the per-unit status offers.
Note that at the moment
charmcraft.yaml
doesn't work withpayloads
, so to use this feature you need to use the old style of having a separatemetadata.yaml
file. The Juju team said that it's still available and didn't say that it was deprecated.The text was updated successfully, but these errors were encountered: