Please take into account, that when displaying bundles like a charm on charmhub.io, it would be consistent, if these fields would be supported as well for these.
Right now the metadata.yaml does not appear to be part of the bundle and as consequence, info given there would not work for bundles.
I think each field recognised by the tooling should be defined in the spec, perhaps with a note if itâs deprecated (which I assume maintainer is, in favour of maintainers?).
Is the iff in the above sentences short-hand for if and only if? It might be better to fully write out if and only if rather than iff since not everyone reading through this documentation may have a strong mathematical background. IFF can mean different things to different people based on their background. For example, there is an identification system named IFF, and there is a prominent US company that goes by IFF. I only see âiffâ used in the sections quoted above in this documentation page.
Hi, as someone mentioned above, this should be âpeersâ and not peer. The charm wonât generate the corresponding events if this key is not correct.
From juju 3.5.0 the containers stanzas now support controlling the uid/gid of pebble:
containers:
<container name>:
# (Optional) UID to run the pebble entry process for this container as.
# Can be any value from 0-999 or any value from 10,000 (values from 1000-9999 are reserved for users).
# Default is 0 (root). Added in Juju 3.5.0.
uid: <unix UID>
# (Optional) GID to run the pebble entry process for this container as.
# Can be any value from 0-999 or any value from 10,000 (values from 1000-9999 are reserved for user's primary groups).
# Default is 0 (root). Added in Juju 3.5.0.
gid: <unix GID>
From juju 3.6.0 the top level field charm-user is added to control what user the charm is run under. This is only supported on kubernetes, on machines it has no effect as of 3.6.
It supports three values: root, sudoer and non-root.
charm-user: root runs the charm as the root user.
charm-user: sudoer runs the charm as a user that can use sudo to run commands as root.
charm-user: non-root runs the charm as a user that is not root and does not have access to sudo.