Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make scale a *int as default is 1 (not 0) #481

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Nov 3, 2023

as default is not 0, omitempty doesn't apply and this require code to manage this default value.
using an *int we can distinguish unset value (scale=1) vs service explicitly set to scale=0 (many users rely on this to disable service)

@ndeloof ndeloof marked this pull request as ready for review November 3, 2023 11:38
@ndeloof ndeloof requested review from milas, glours and laurazard November 3, 2023 11:38
@ndeloof ndeloof force-pushed the scale_default branch 5 times, most recently from 1352ed4 to 4007b07 Compare November 8, 2023 08:56
types/types.go Outdated Show resolved Hide resolved
@ndeloof ndeloof merged commit 7210cee into compose-spec:main Nov 21, 2023
8 checks passed
@ndeloof ndeloof deleted the scale_default branch November 21, 2023 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants