-
Notifications
You must be signed in to change notification settings - Fork 519
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
Support settings oci defaults on ecs variants #3259
Support settings oci defaults on ecs variants #3259
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor things, but looks pretty good overall.
packages/docker-engine/0001-read-default-oci-spec-from-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-read-default-oci-spec-from-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-read-default-oci-spec-from-file.patch
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to clean up the commit messages and order a bit as well.
packages/docker-engine/0001-read-default-oci-spec-from-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-read-default-oci-spec-from-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-read-default-oci-spec-from-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-read-default-oci-spec-from-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-read-default-oci-spec-from-file.patch
Outdated
Show resolved
Hide resolved
sources/models/shared-defaults/oci-defaults-docker-cri-resource-limits.toml
Outdated
Show resolved
Hide resolved
bddf1b7
to
c2684d8
Compare
c2684d8
to
a5768cf
Compare
packages/docker-engine/0001-Add-ability-to-read-default-OCI-Spec-from-a-file.patch
Outdated
Show resolved
Hide resolved
c6f840b
to
50f0e28
Compare
packages/docker-engine/0001-Add-ability-to-read-default-OCI-Spec-from-a-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-Add-ability-to-read-default-OCI-Spec-from-a-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-Add-ability-to-read-default-OCI-Spec-from-a-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-Add-ability-to-read-default-OCI-Spec-from-a-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-Add-ability-to-read-default-OCI-Spec-from-a-file.patch
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-Add-ability-to-read-default-OCI-Spec-from-a-file.patch
Outdated
Show resolved
Hide resolved
01ae0fa
to
c6f55b1
Compare
Change patch to add "default-capabilities" in the daemon.json and update these default-capabilities and default-ulimits using apiclient settings. |
c6f55b1
to
8e9dae8
Compare
packages/docker-engine/0001-Change-default-capabilities-using-daemon-config.patch
Outdated
Show resolved
Hide resolved
1881e5a
to
1ad752c
Compare
c8584ab
to
63e498f
Compare
sources/models/shared-defaults/oci-defaults-docker-capabilities.toml
Outdated
Show resolved
Hide resolved
packages/docker-engine/0001-Change-default-capabilities-using-daemon-config.patch
Outdated
Show resolved
Hide resolved
fa74142
to
79f8b93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
This migration will handle the added capabilities and resource limits settings added for ecs variants. Signed-off-by: Shikha Vyaghra <[email protected]>
This patch is to override the capabilities in default runtime spec(that is embedded in moby package code) by reading a default-capabilities parameter passed using etc/docker/daemon.json file. We can update the default capabilities string array using api client, that in turn will take precedence over the default capabilities in OCI Spec. Signed-off-by: Shikha Vyaghra <[email protected]>
183a85a
to
03af410
Compare
b36629d
to
f6b6d7f
Compare
The fields default-capabilities and default-ulimits in etc/daemon.json holds the OCI default capabilities and resource limits that has been set using api-client respectively. These settings can be updated/added using api-client.
f6b6d7f
to
bd2619e
Compare
Issue number:
Closes #2759
Description of changes:
Currently in bottlerocket we have support for setting OCI defaults in orchestrator-launched pods using api. (Refer #1703 #2404 #2697 ). The settings we added in api are:
But currently in bottlerocket these setting do not work for ECS variants in same way as EKS variants because ECS variants uses docker.(Moby package)
This PR will enable the support for these setting for ecs variants.
The priority for these settings are daemon.json => Hostconfig, meaning if any configuration change has been done in HostConfig for Capabilities and Resource limits, it should get preference over the setting done by daemon.json.
Testing done:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.