Don't allow defining 'routes' toplevel
Doesn't make much sense to deploy more than one app with the same route (this will result in an error, you can only bind one thing to a route / host).
This commit is contained in:
@@ -52,7 +52,7 @@ public class ManifestYmlSchema implements YamlSchema {
|
||||
public final AbstractType t_route_string;
|
||||
|
||||
private static final Set<String> TOPLEVEL_EXCLUDED = ImmutableSet.of(
|
||||
"name", "host", "hosts"
|
||||
"name", "host", "hosts", "routes"
|
||||
);
|
||||
|
||||
@Override
|
||||
|
||||
@@ -291,8 +291,8 @@ public class ManifestYamlEditorTest {
|
||||
// ---------------
|
||||
"random-route: <*>",
|
||||
// ---------------
|
||||
"routes:\n"+
|
||||
"- route: <*>",
|
||||
// "routes:\n"+
|
||||
// "- route: <*>",
|
||||
// ---------------
|
||||
"services:\n"+
|
||||
"- <*>",
|
||||
|
||||
Reference in New Issue
Block a user