Charm configuration deprecated option flag

Bug #1788101 reported by Stuart Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

As Juju becomes more featureful, more and more charm configuration options become unnecessary. Unfortunately, they still need to hang around for quite some time for backwards compatibility reasons.

Could we get a boolean flag on charm configuration items that flag the option as 'deprecated'?

I think it is fine if Juju core completely ignores the new flag. Optionally the CLI and/or the GUI can warn if a deprecated option is set.

The charm store and any other systems that generate documentation should use the flag, hiding the deprecated options (which often conflict or contradict other charm options or model configuration).

https://jujucharms.com/new/postgresql is an example of a charm with many deprecated options, and a correspondingly confusing generated configuration section.

I suggest config.yaml that looks like:

options:
   admin_interface:
   default: ""
   type: string
   description: Ignored. Use Juju spaces.
   deprecated: true

Revision history for this message
Richard Harding (rharding) wrote :

Thanks, I can see the need to be able to help with that over time. It feels like something we need to bring to the current discussions around improving config for the roadmap.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
Tim Penhey (thumper)
tags: added: charm config
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.