Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#17348 from jack-w-shaw/JUJU-5996_deprecate_bu…
…ndles_with_series juju#17348 Show a deprecation warning when deploying a bundle with series We are deprecating series in favour of base in general. In Juju 4.0 we will error out if a bundle provides a base. This change in in preparation for this later breaking change ## Checklist - [x] Code style: imports ordered, good names, simple structure, etc - [x] Comments saying why design decisions were made - [x] Go unit tests, with comments saying what you're testing - [ ] [Integration tests](https://github.com/juju/juju/tree/main/tests), with comments saying what you're testing - [ ] [doc.go](https://discourse.charmhub.io/t/readme-in-packages/451) added or updated in changed packages ## QA steps Deploy some bundles ``` $ cat ./bundle.yaml series: focal applications: ubuntu: charm: ubuntu num_units: 1 to: - "0" machines: "0": $ juju deploy ./bundle.yaml WARNING series in being deprecated in favour of bases. For more information about the transition to bases see https://discourse.charmhub.io/t/transition-from-series-to-base-in-juju-4-0/14127 ... ``` ``` $ cat bundle.yaml applications: ubuntu: series: focal charm: ubuntu num_units: 1 to: - "0" machines: "0": base: [email protected] $ juju deploy ./bundle.yaml WARNING series in being deprecated in favour of bases. For more information about the transition to bases see https://discourse.charmhub.io/t/transition-from-series-to-base-in-juju-4-0/14127 ... ``` ``` $ cat bundle.yaml applications: ubuntu: base: [email protected] charm: ubuntu num_units: 1 to: - "0" machines: "0": series: focal $ juju deploy ./bundle.yaml WARNING series in being deprecated in favour of bases. For more information about the transition to bases see https://discourse.charmhub.io/t/transition-from-series-to-base-in-juju-4-0/14127 ... ``` ``` $ cat ./bundle.yaml series: focal default-base: [email protected] applications: ubuntu: charm: ubuntu num_units: 1 to: - "0" machines: "0": $ juju deploy ./bundle.yaml WARNING series in being deprecated in favour of bases. For more information about the transition to bases see https://discourse.charmhub.io/t/transition-from-series-to-base-in-juju-4-0/14127 ... ``` ``` default-base: [email protected] applications: ubuntu: charm: ubuntu num_units: 1 to: - "0" machines: "0": $ juju deploy ./bundle.yaml ... ``` ``` $ juju deploy charmed-kubernetes Located bundle "charmed-kubernetes" in charm-hub, revision 1243 WARNING series in being deprecated in favour of bases. For more information about the transition to bases see https://discourse.charmhub.io/t/transition-from-series-to-base-in-juju-4-0/14127 ... ``` ## Links **Jira card:** [JUJU-5596](https://warthogs.atlassian.net/browse/JUJU-5996) [JUJU-5596]: https://warthogs.atlassian.net/browse/JUJU-5596?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information