Skip to content

seiralise NanoCPUs as string#696

Merged
ndeloof merged 1 commit intocompose-spec:mainfrom
ndeloof:NanoCPUs
Oct 14, 2024
Merged

seiralise NanoCPUs as string#696
ndeloof merged 1 commit intocompose-spec:mainfrom
ndeloof:NanoCPUs

Conversation

@ndeloof
Copy link
Copy Markdown
Collaborator

@ndeloof ndeloof commented Oct 11, 2024

value without a decimal part will be rendered as integer, so need to also accept integer

fixes docker/compose#11903

this PR only adds case int: but I used this opportunity to extract type in a dedicated go file

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@ndeloof ndeloof requested review from glours and jhrotko October 11, 2024 17:06
Copy link
Copy Markdown
Collaborator

@glours glours left a comment

Choose a reason for hiding this comment

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

LGTM

@ndeloof ndeloof merged commit fb8e04d into compose-spec:main Oct 14, 2024
@ndeloof ndeloof deleted the NanoCPUs branch October 14, 2024 09:12
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.

docker compose config outputs an invalid format for deploy.resources.limits.cpus

2 participants