Whats the status on juju annotations on juju 3.6+ ?

A year ago, we did some experiments with “annotations” for juju models, but at the time it was major issues for us using it.

  • Couldn’t interface with it from our libjuju codes.
  • Wasn’t well supported by the version of juju we used (~3.0)
  • Not documented

Q: What is the current status of “juju annotations” on juju (3.6+)

Q: What is the status on the support for annotations for use within lets say, libjuju (or similar which would allow us to use automation tools for working with it) ?

We would be greatly benefited from using a feature for this. Others has also mentioned it.

1 Like

Is there any update on this?

Annotations were initially done in 2015 to record coordinates for use by the gui. As far as i recall, they’re only able to be set from within bundles, eg

applications:
  glance:
    annotations:
      gui-x: '250'
      gui-y: '0'
    charm: cs:glance
    num_units: 1

I’m not even sure there’s a cli command to inspect them. I think the feature is essentially orphaned since the old gui was dropped a while back and there’s no real cli for interacting with them.

There’s a client API for getting and setting them but as you say, I’m not sure libjuju supports it.

The doc as you say is very limited - there’s reference here with regard to diffing bundles https://documentation.ubuntu.com/juju/3.6/reference/juju-cli/list-of-juju-cli-commands/diff-bundle/

I imagine it would also be mentioned in the doc for specifying bundle content.

Given the above, I the utility of the annotations feature seems rather limited in its current form.

2 Likes