DockerCLI/cli
Vincent Demeester 6bcfa8806c
Allow `x-*` extension on 3rd level objects
As for top-level key, any 3rd-level key which starts with `x-` will be
ignored by compose. This allows for users to:
* include additional metadata in their compose files
* create YAML anchor objects that can be re-used in other parts of the config

This matches a similar feature in the swagger spec definition:
https://swagger.io/specification/#specificationExtensions

This means a composefile like the following is valid

```
verison: "3.7"
services:
  foo:
    image: foo/bar
    x-foo: bar
network:
  bar:
    x-bar: baz
```

It concerns services, volumes, networks, configs and secrets.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2018-05-31 13:38:58 +02:00
..
command Fix outputting twice the docker stack rm error message 2018-05-30 15:56:41 +02:00
compose Allow `x-*` extension on 3rd level objects 2018-05-31 13:38:58 +02:00
config Check allNamespace config value while loading configuration file 2018-05-28 15:15:25 +02:00
debug updated vendoring 2017-09-01 19:41:06 -04:00
flags --orchestrator flag is now a persistent flag 2018-05-28 10:43:32 +02:00
manifest Convert assert.Check(t, is.Error()) to assert.Error 2018-03-06 16:00:28 -05:00
registry/client Bump moby to d37f5c6bdf788a6cb82c07fb707e31a240eff5f9 2018-05-18 11:44:14 +02:00
trust Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
winresources Add windows resources to binary. 2017-05-15 18:03:03 -04:00
cobra.go Hide [flags] in usage output 2018-05-19 02:51:55 +02:00
error.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
required.go Singularize / pluralize "argument(s)" in error message 2017-08-12 18:25:38 +02:00
required_test.go Post migration fixes 2018-03-05 19:41:17 -05:00
version.go Fix grammar typo in comment 2018-02-28 11:29:40 -05:00