allow charms to decline config changes
Bug #1948969 reported by
Simon Déziel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Some configuration changes are not always possible after the initial deployment.
For example, when deploying LXD, one has to decide if standalone or cluster mode is to be used and once set, this cannot be undone. Similarly, the charm accepts a LXD preseed which makes no sense to alter once a unit is deployed.
It would be handy if the charm could simply reject change attempts on certain config keys. Maybe some kind of "modifiable: false" attribute?
tags: | added: lxd-cloud |
To post a comment you must log in.
In discussions with the Juju team, it was mentioned that a few of the potential options for this would be:
- Separate config validation hook
- Stronger typing of the config to allow for schema validation
- Supporting attaching scripts (LUA or the like) to a charm's config which would then be run by the controller to validate the user's config