Can resources be optional?
Bug #1588555 reported by
Matt Bruzek
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
We are developing a charm with our partners that takes 2 resources.
One of the resources is optional but the charm publish commands requires both resources.
charm push cs:~kwmonroe/
charm publish cs:~kwmonroe/
ERROR cannot publish charm or bundle: bad request: charm published with incorrect resources: resources are missing from publish request: ibm_im_fixpack, ibm_im_installer
Is there any way of making some resources optional? I discussed this with cmars and wallyworld in #juju. We talked about an "optional" tag in the metadata.yaml. Are there any other ideas?
To post a comment you must log in.
The charmstore requires that to publish a charm with resources you must supply at least a dummy resource so that any time a user is to juju deploy XXX it's expected to work with the dummy placeholder resource.
An example would be the django charm. It should ship with a hello world application so that tests can run, the charm can be deployed, etc. All of that works without requiring the user to provide something locally in the right format from their machine which they might not have.