Release 4.2.0.

This commit is contained in:
Felix Fontein 2024-12-16 20:42:31 +01:00
parent 18287220ab
commit e638e02124
8 changed files with 442 additions and 374 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,32 @@ Docker Community Collection Release Notes
.. contents:: Topics
v4.2.0
======
Release Summary
---------------
Bugfix and feature release.
Minor Changes
-------------
- docker_compose_v2 - add ``ignore_build_events`` option (default value ``true``) which allows to (not) ignore build events for change detection (https://github.com/ansible-collections/community.docker/issues/1005, https://github.com/ansible-collections/community.docker/issues/pull/1011).
- docker_image_build - ``outputs[].name`` can now be a list of strings (https://github.com/ansible-collections/community.docker/pull/1006).
- docker_image_build - the executed command is now returned in the ``command`` return value in case of success and some errors (https://github.com/ansible-collections/community.docker/pull/1006).
- docker_network - added ``ingress`` option (https://github.com/ansible-collections/community.docker/pull/999).
Bugfixes
--------
- docker_compose_v2 - when using Compose 2.31.0 or newer, revert to the old behavior that image rebuilds, for example if ``rebuild=always``, only result in ``changed`` if a container has been restarted (https://github.com/ansible-collections/community.docker/issues/1005, https://github.com/ansible-collections/community.docker/issues/pull/1011).
- docker_image_build - work around bug resp. very unexpected behavior in Docker buildx that overwrites all image names in ``--output`` parameters if ``--tag`` is provided, which the module did by default in the past. The module now only supplies ``--tag`` if ``outputs`` is empty. If ``outputs`` has entries, it will add an additional entry with ``type=image`` if no entry of ``type=image`` contains the image name specified by the ``name`` and ``tag`` options (https://github.com/ansible-collections/community.docker/issues/1001, https://github.com/ansible-collections/community.docker/pull/1006).
- docker_network - added waiting while container actually disconnect from Swarm network (https://github.com/ansible-collections/community.docker/pull/999).
- docker_network - containers are only reconnected to a network if they really exist (https://github.com/ansible-collections/community.docker/pull/999).
- docker_network - enabled "force" option in Docker network container disconnect API call (https://github.com/ansible-collections/community.docker/pull/999).
- docker_swarm_info - do not crash when finding Swarm jobs if ``services=true`` (https://github.com/ansible-collections/community.docker/issues/1003).
v4.1.0
======

View File

@ -1993,3 +1993,41 @@ releases:
- 992-module-docker_compose_v2_run-fix-env-argument.yml
- 995-docker_host_info-return.yml
release_date: '2024-11-23'
4.2.0:
changes:
bugfixes:
- docker_compose_v2 - when using Compose 2.31.0 or newer, revert to the old
behavior that image rebuilds, for example if ``rebuild=always``, only result
in ``changed`` if a container has been restarted (https://github.com/ansible-collections/community.docker/issues/1005,
https://github.com/ansible-collections/community.docker/issues/pull/1011).
- docker_image_build - work around bug resp. very unexpected behavior in Docker
buildx that overwrites all image names in ``--output`` parameters if ``--tag``
is provided, which the module did by default in the past. The module now
only supplies ``--tag`` if ``outputs`` is empty. If ``outputs`` has entries,
it will add an additional entry with ``type=image`` if no entry of ``type=image``
contains the image name specified by the ``name`` and ``tag`` options (https://github.com/ansible-collections/community.docker/issues/1001,
https://github.com/ansible-collections/community.docker/pull/1006).
- docker_network - added waiting while container actually disconnect from
Swarm network (https://github.com/ansible-collections/community.docker/pull/999).
- docker_network - containers are only reconnected to a network if they really
exist (https://github.com/ansible-collections/community.docker/pull/999).
- docker_network - enabled "force" option in Docker network container disconnect
API call (https://github.com/ansible-collections/community.docker/pull/999).
- docker_swarm_info - do not crash when finding Swarm jobs if ``services=true``
(https://github.com/ansible-collections/community.docker/issues/1003).
minor_changes:
- docker_compose_v2 - add ``ignore_build_events`` option (default value ``true``)
which allows to (not) ignore build events for change detection (https://github.com/ansible-collections/community.docker/issues/1005,
https://github.com/ansible-collections/community.docker/issues/pull/1011).
- docker_image_build - ``outputs[].name`` can now be a list of strings (https://github.com/ansible-collections/community.docker/pull/1006).
- docker_image_build - the executed command is now returned in the ``command``
return value in case of success and some errors (https://github.com/ansible-collections/community.docker/pull/1006).
- docker_network - added ``ingress`` option (https://github.com/ansible-collections/community.docker/pull/999).
release_summary: Bugfix and feature release.
fragments:
- 1003-docker_swarm_info-crash.yml
- 1006-docker-image-build-outputs.yml
- 1011-docker_compose_v2-build-changed.yml
- 4.2.0.yml
- 999-add-ingress-option-to-docker_network-module.yml
release_date: '2024-12-16'

View File

@ -1,2 +0,0 @@
bugfixes:
- "docker_swarm_info - do not crash when finding Swarm jobs if ``services=true`` (https://github.com/ansible-collections/community.docker/issues/1003)."

View File

@ -1,10 +0,0 @@
bugfixes:
- "docker_image_build - work around bug resp. very unexpected behavior in Docker buildx that overwrites
all image names in ``--output`` parameters if ``--tag`` is provided, which the module did by default
in the past. The module now only supplies ``--tag`` if ``outputs`` is empty. If ``outputs`` has entries,
it will add an additional entry with ``type=image`` if no entry of ``type=image`` contains the image name
specified by the ``name`` and ``tag`` options
(https://github.com/ansible-collections/community.docker/issues/1001, https://github.com/ansible-collections/community.docker/pull/1006)."
minor_changes:
- "docker_image_build - ``outputs[].name`` can now be a list of strings (https://github.com/ansible-collections/community.docker/pull/1006)."
- "docker_image_build - the executed command is now returned in the ``command`` return value in case of success and some errors (https://github.com/ansible-collections/community.docker/pull/1006)."

View File

@ -1,7 +0,0 @@
minor_changes:
- "docker_compose_v2 - add ``ignore_build_events`` option (default value ``true``) which allows to (not) ignore build events for change detection
(https://github.com/ansible-collections/community.docker/issues/1005, https://github.com/ansible-collections/community.docker/issues/pull/1011)."
bugfixes:
- "docker_compose_v2 - when using Compose 2.31.0 or newer, revert to the old behavior that image rebuilds, for example if ``rebuild=always``, only
result in ``changed`` if a container has been restarted
(https://github.com/ansible-collections/community.docker/issues/1005, https://github.com/ansible-collections/community.docker/issues/pull/1011)."

View File

@ -1 +0,0 @@
release_summary: Bugfix and feature release.

View File

@ -1,6 +0,0 @@
minor_changes:
- docker_network - added ``ingress`` option (https://github.com/ansible-collections/community.docker/pull/999).
bugfixes:
- docker_network - containers are only reconnected to a network if they really exist (https://github.com/ansible-collections/community.docker/pull/999).
- docker_network - enabled "force" option in Docker network container disconnect API call (https://github.com/ansible-collections/community.docker/pull/999).
- docker_network - added waiting while container actually disconnect from Swarm network (https://github.com/ansible-collections/community.docker/pull/999).