canonical / charmed-kubeflow-chisme

Shared Utilities used across Charmed Kubeflow
Apache License 2.0
1 stars 4 forks source link

feat: add tools for interacting with bundles and juju CLI #27

Closed ca-scribner closed 1 year ago

ca-scribner commented 1 year ago

This PR adds tools to make it easier to interact with charm bundles and the Juju CLI.

Bundle class adds things like loading bundles from yaml, comparing bundles, diffing bundles. Also included is the get_newest_charm_revision() helper, which retrieves from juju info cli command what the newest charm revision is for a charm in a particular channel.

Juju class and helpers add some convenience functions and structure around calling the juju cli

ca-scribner commented 1 year ago

Todo: add tests for the new components