Feature add config and action parameter type: set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
I would like to propose a new config type for juju charms: Set
The set type would allow a charmer to specify a set of allowed values for a config level declared in config.yaml for a given config item. As
fruit: [ 'apple', 'banana', 'citrus' ]
mode: single-value or multi-value
non-empty: true or false
default: [ 'banana', 'citrus' ]
This would allow juju to validate input of config early to simplify parameter validation when config values are a few.
The mode attribute to the set would allow more than one selection.
The non-empty would control the value to be [] or not.
The default would be as expected a predefined list of items already chosen.
This very same feature should be implemented also for juju-action parameters.
This feature would assist alot also to prevent and inform users in situations when juju-actions are run incorrect, as for example in this bug: https:/
In the web GUI, the presentational widget for this option/config type would be presented as a drop down or a
This fits with our general long term plans are a config schema. Added appropriate tags, to remind us to loop back.