No ability to specify default resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
There is currently no way to specify a default value for resources in a charm's metadata.yaml. In particular, `oci-image` type resources can't set a default. This results in having to copy/paste the image name into several different places, each of which can be forgotten about when updating the image.
The existing solution used in many Kubeflow charms is to add a `upstream-source` field. This was a compromise solution in that the Charmed Kubeflow tooling could use the field, and Juju could ignore it.
However, can Juju just add a `default` field that it knows about, or use the existing `upstream-source` field? That would simplify this fun command:
juju deploy ./kubeflow-
To something nice and easy, like this (if we didn't want to change the default behavior):
juju deploy ./kubeflow-
Or even this if we could change the default behavior:
juju deploy ./kubeflow-
Note that we would also want to integrate support from charmcraft so that build/push etc all use the right information.