X Tutup
Skip to content

add ability to override ints in compose files with 0#3812

Merged
thaJeztah merged 1 commit intodocker:masterfrom
mspiess:3293-fix-replicas-override-0
Dec 5, 2022
Merged

add ability to override ints in compose files with 0#3812
thaJeztah merged 1 commit intodocker:masterfrom
mspiess:3293-fix-replicas-override-0

Conversation

@mspiess
Copy link
Contributor

@mspiess mspiess commented Oct 12, 2022

fixes #3293

- What I did
Allow the number for replicas to be overridden with 0 when using multiple compose files.

- How I did it
I added a custom merge function for the type *uint64. Maybe there is a more elegant way, but I was struggling to find documentation or examples for the used library "mergo". This issue of the library might be related.

- How to verify it
See the reproduction steps in the linked issue.

- Description for the changelog
Fix overriding ints with 0 when using multiple compose files

🐳
Signed-off-by: Marco Spiess marco.spiess@hotmail.de

Signed-off-by: Marco Spiess <marco.spiess@hotmail.de>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thaJeztah thaJeztah merged commit 37dcee3 into docker:master Dec 5, 2022
@mspiess mspiess deleted the 3293-fix-replicas-override-0 branch December 6, 2022 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker stack not scaling to 0 on overridden yml

2 participants

X Tutup