Add missing hoverdoc for 'vm_extensions' property

This commit is contained in:
Kris De Volder
2017-08-09 17:00:07 -07:00
parent da20170797
commit aedab760d6
3 changed files with 12 additions and 1 deletions

View File

@@ -132,7 +132,6 @@ public class BoshCloudConfigSchema extends SchemaSupport implements YamlSchema {
for (YType defType : getDefinitionTypes()) {
toplevelType.require(Constraints.uniqueDefinition(astTypes, defType, YamlSchemaProblems.problemType("BOSH_CC_DUPLICATE_"+defType)));
}
}
private YType createNetworkBlockSchema(BoshModels models) {

View File

@@ -0,0 +1,10 @@
Specifies the [VM extensions](https://bosh.io/docs/terminology.html#vm-extension) available to deployments.
Example:
vm_extensions:
- name: pub-lbs
cloud_properties:
elbs: [main]
Any IaaS specific configuration could be placed into a VM extensions `cloud_properties`.

View File

@@ -1900,6 +1900,7 @@ public class BoshEditorTest {
Editor editor = harness.newEditor(LanguageId.BOSH_CLOUD_CONFIG,
"azs: []\n" +
"vm_types: []\n" +
"vm_extensions: []\n" +
"disk_types: []\n" +
"networks: []\n" +
"compilation: {}\n"
@@ -1909,6 +1910,7 @@ public class BoshEditorTest {
editor.assertHoverContains("vm_types", "Specifies the [VM types](https://bosh.io/docs/terminology.html#vm-type) available to deployments.");
editor.assertHoverContains("disk_types", "Specifies the [disk types](https://bosh.io/docs/terminology.html#disk-types) available to deployments.");
editor.assertHoverContains("compilation", "A compilation definition allows to specify VM characteristics.");
editor.assertHoverContains("vm_extensions", "Specifies the [VM extensions](https://bosh.io/docs/terminology.html#vm-extension) available to deployments.");
}
@Test public void cloudconfig_compilation_subproperties() throws Exception {