Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model introspection for units #1436

Open
aieri opened this issue Oct 16, 2024 · 0 comments
Open

Model introspection for units #1436

aieri opened this issue Oct 16, 2024 · 0 comments

Comments

@aieri
Copy link

aieri commented Oct 16, 2024

I see that the ops.Model class allows units to introspect the model they're in, but only in limited ways.
Allowing units to have a (read-only) full view of the model would allow charms to make more informed decisions about their behaviors. For example, applications that should be ubiquitous like grafana-agent would be able to tell if they have been deployed on some but not all machines and warn the user accordingly, without the need for external tooling.

In other words, the ops module could provide an idiomatic way for charms to consume juju export-bundle without awkward interactions with the juju api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant