Add support for parsing more charm storage metadata #88

Merged
merged 2 commits into from Mar 3, 2015

Conversation

Projects
None yet
2 participants
Owner

wallyworld commented Mar 3, 2015

minimum-size and properties are now supported in charm storage metadata

+ // such as tmpfs or ephemeral instance disks.
+ //
+ // Properties has no default, and is optional.
+ Properties []string `bson:properties,omitempty`
@axw

axw Mar 3, 2015

Member

Given that we won't be honouring properties yet, and it's not clear in the spec whether properties are requirements or hints (I opened a question, never got answered), I'd really rather if this got left out for now.

@wallyworld

wallyworld Mar 3, 2015

Owner

As discussed live, the properties are used as hints and jam is ok with implementing these now.

meta_test.go
+ yaml: " type: block\n minimum-size: 10Q",
+ err: `metadata: invalid multiplier suffix "Q", expected one of MGTPEZY`,
+ }, {
+ desc: "properties must contain valid valies must have valid suffix",
Member

axw commented Mar 3, 2015

LGTM, but I think it's premature to add properties. It is not well defined, and we don't know how it'll be used yet.

wallyworld added a commit that referenced this pull request Mar 3, 2015

Merge pull request #88 from wallyworld/additional-storage-metadata
Add support for parsing more charm storage metadata

@wallyworld wallyworld merged commit c9dacb8 into juju:v4 Mar 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment