Add 'tags' to bosh schema

This commit is contained in:
Kris De Volder
2017-07-10 16:29:31 -07:00
parent f933ba6860
commit 9522d56af9
3 changed files with 11 additions and 1 deletions

View File

@@ -76,6 +76,8 @@ public class BoshDeploymentManifestSchema implements YamlSchema {
YType t_variable = t_params; //TODO: https://www.pivotaltracker.com/story/show/148627441
addProp(TOPLEVEL_TYPE, "variables", f.yseq(t_variable));
addProp(TOPLEVEL_TYPE, "tags", t_params);
}
@Override

View File

@@ -0,0 +1,6 @@
*Optional*. Specifies key value pairs to be sent to the CPI for VM tagging. Combined with runtime config level tags during the deploy. Available in bosh-release v258+.
Example:
tags:
project: cf

View File

@@ -91,6 +91,8 @@ public class BoshEditorTest {
" alternative_names: [cc.cf.internal]\n" +
"properties:\n" +
" a-property: the-value\n" +
"tags:\n" +
" project: cf\n" +
"blah: hoooo\n"
);
editor.assertProblems(
@@ -106,7 +108,7 @@ public class BoshEditorTest {
editor.assertHoverContains("instance_groups", "Specifies the mapping between release [jobs](https://bosh.io/docs/terminology.html#job) and instance groups.");
editor.assertHoverContains("properties", 3, "Describes global properties. Deprecated");
editor.assertHoverContains("variables", "Describes variables");
editor.assertHoverContains("tags", "Specifies key value pairs to be sent to the CPI for VM tagging");
}
@Test public void toplevelV2PropertyCompletions() throws Exception {