Skip to content

Commit 456ff4b

Browse files
authored
Merge pull request docker#5914 from docker/bump-1.21.1
Bump 1.21.1
2 parents d787f25 + 5a3f1a3 commit 456ff4b

35 files changed

+1455
-451
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
Change log
22
==========
33

4+
1.21.1 (2018-04-27)
5+
-------------------
6+
7+
### Bugfixes
8+
9+
- In 1.21.0, we introduced a change to how project names are sanitized for
10+
internal use in resource names. This caused issues when manipulating an
11+
existing, deployed application whose name had changed as a result.
12+
This release properly detects resources using "legacy" naming conventions.
13+
14+
- Fixed an issue where specifying an in-context Dockerfile using an absolute
15+
path would fail despite being valid.
16+
17+
- Fixed a bug where IPAM option changes were incorrectly detected, preventing
18+
redeployments.
19+
20+
- Validation of v2 files now properly checks the structure of IPAM configs.
21+
22+
- Improved support for credentials stores on Windows to include binaries using
23+
extensions other than `.exe`. The list of valid extensions is determined by
24+
the contents of the `PATHEXT` environment variable.
25+
26+
- Fixed a bug where Compose would generate invalid binds containing duplicate
27+
elements with some v3.2 files, triggering errors at the Engine level during
28+
deployment.
29+
430
1.21.0 (2018-04-10)
531
-------------------
632

compose/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from __future__ import absolute_import
22
from __future__ import unicode_literals
33

4-
__version__ = '1.21.0'
4+
__version__ = '1.21.1'

compose/config/config_schema_v2.0.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@
281281
"properties": {
282282
"driver": {"type": "string"},
283283
"config": {
284-
"type": "array"
284+
"type": "array",
285+
"items": {"$ref": "#/definitions/ipam_config"}
285286
},
286287
"options": {
287288
"type": "object",
@@ -305,6 +306,24 @@
305306
"additionalProperties": false
306307
},
307308

309+
"ipam_config": {
310+
"id": "#/definitions/ipam_config",
311+
"type": "object",
312+
"properties": {
313+
"subnet": {"type": "string"},
314+
"iprange": {"type": "string"},
315+
"gateway": {"type": "string"},
316+
"aux_addresses": {
317+
"type": "object",
318+
"patternProperties": {
319+
"^.+$": {"type": "string"}
320+
},
321+
"additionalProperties": false
322+
}
323+
},
324+
"additionalProperties": false
325+
},
326+
308327
"volume": {
309328
"id": "#/definitions/volume",
310329
"type": ["object", "null"],

compose/config/config_schema_v2.1.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@
332332
"properties": {
333333
"driver": {"type": "string"},
334334
"config": {
335-
"type": "array"
335+
"type": "array",
336+
"items": {"$ref": "#/definitions/ipam_config"}
336337
},
337338
"options": {
338339
"type": "object",
@@ -359,6 +360,24 @@
359360
"additionalProperties": false
360361
},
361362

363+
"ipam_config": {
364+
"id": "#/definitions/ipam_config",
365+
"type": "object",
366+
"properties": {
367+
"subnet": {"type": "string"},
368+
"iprange": {"type": "string"},
369+
"gateway": {"type": "string"},
370+
"aux_addresses": {
371+
"type": "object",
372+
"patternProperties": {
373+
"^.+$": {"type": "string"}
374+
},
375+
"additionalProperties": false
376+
}
377+
},
378+
"additionalProperties": false
379+
},
380+
362381
"volume": {
363382
"id": "#/definitions/volume",
364383
"type": ["object", "null"],

compose/config/config_schema_v2.2.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@
341341
"properties": {
342342
"driver": {"type": "string"},
343343
"config": {
344-
"type": "array"
344+
"type": "array",
345+
"items": {"$ref": "#/definitions/ipam_config"}
345346
},
346347
"options": {
347348
"type": "object",
@@ -368,6 +369,24 @@
368369
"additionalProperties": false
369370
},
370371

372+
"ipam_config": {
373+
"id": "#/definitions/ipam_config",
374+
"type": "object",
375+
"properties": {
376+
"subnet": {"type": "string"},
377+
"iprange": {"type": "string"},
378+
"gateway": {"type": "string"},
379+
"aux_addresses": {
380+
"type": "object",
381+
"patternProperties": {
382+
"^.+$": {"type": "string"}
383+
},
384+
"additionalProperties": false
385+
}
386+
},
387+
"additionalProperties": false
388+
},
389+
371390
"volume": {
372391
"id": "#/definitions/volume",
373392
"type": ["object", "null"],

compose/config/config_schema_v2.3.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@
385385
"properties": {
386386
"driver": {"type": "string"},
387387
"config": {
388-
"type": "array"
388+
"type": "array",
389+
"items": {"$ref": "#/definitions/ipam_config"}
389390
},
390391
"options": {
391392
"type": "object",
@@ -412,6 +413,24 @@
412413
"additionalProperties": false
413414
},
414415

416+
"ipam_config": {
417+
"id": "#/definitions/ipam_config",
418+
"type": "object",
419+
"properties": {
420+
"subnet": {"type": "string"},
421+
"iprange": {"type": "string"},
422+
"gateway": {"type": "string"},
423+
"aux_addresses": {
424+
"type": "object",
425+
"patternProperties": {
426+
"^.+$": {"type": "string"}
427+
},
428+
"additionalProperties": false
429+
}
430+
},
431+
"additionalProperties": false
432+
},
433+
415434
"volume": {
416435
"id": "#/definitions/volume",
417436
"type": ["object", "null"],

compose/config/config_schema_v2.4.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@
384384
"properties": {
385385
"driver": {"type": "string"},
386386
"config": {
387-
"type": "array"
387+
"type": "array",
388+
"items": {"$ref": "#/definitions/ipam_config"}
388389
},
389390
"options": {
390391
"type": "object",
@@ -411,6 +412,24 @@
411412
"additionalProperties": false
412413
},
413414

415+
"ipam_config": {
416+
"id": "#/definitions/ipam_config",
417+
"type": "object",
418+
"properties": {
419+
"subnet": {"type": "string"},
420+
"iprange": {"type": "string"},
421+
"gateway": {"type": "string"},
422+
"aux_addresses": {
423+
"type": "object",
424+
"patternProperties": {
425+
"^.+$": {"type": "string"}
426+
},
427+
"additionalProperties": false
428+
}
429+
},
430+
"additionalProperties": false
431+
},
432+
414433
"volume": {
415434
"id": "#/definitions/volume",
416435
"type": ["object", "null"],

0 commit comments

Comments
 (0)