Remove the deprecated '--kernel-memory' option on API v1.42 and up#43214
Merged
AkihiroSuda merged 3 commits intomoby:masterfrom Mar 17, 2022
Merged
Remove the deprecated '--kernel-memory' option on API v1.42 and up#43214AkihiroSuda merged 3 commits intomoby:masterfrom
AkihiroSuda merged 3 commits intomoby:masterfrom
Conversation
tianon
approved these changes
Feb 8, 2022
Member
Author
|
@AkihiroSuda ptal |
This comment was marked as spam.
This comment was marked as spam.
inosgun
approved these changes
Feb 19, 2022
Member
Author
|
Extracted the first 3 commits to #43277 |
0ad089a to
3322447
Compare
Member
Author
|
Hmm. failure on Microsoft's registry 😅 ; |
rumpl
reviewed
Mar 16, 2022
docs/api/version-history.md
Outdated
| invalid `condition` is provided (on API 1.30 and up). | ||
| * Removed the `KernelMemory` field from the `POST /containers/create` and | ||
| `POST /containers/{id}/update` endpoints, any value it is set to will be ignored | ||
| on API version `v1.41` and up. Older API versions still accept this field, but |
Member
Author
There was a problem hiding this comment.
Ah, dang! Yes, let me fix that
- remove KernelMemory option from `v1.42` api docs - remove KernelMemory warning on `/info` - update changes for `v1.42` - remove `KernelMemory` field from endpoints docs Signed-off-by: aiordache <anca.iordache@docker.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Omit `KernelMemory` and `KernelMemoryTCP` fields in `/info` response if they're not supported, or when using API v1.42 or up. - Re-enable detection of `KernelMemory` (as it's still needed for older API versions) - Remove warning about kernel memory TCP in daemon logs (a warning is still returned by the `/info` endpoint, but we can consider removing that). - Prevent incorrect "Minimum kernel memory limit allowed" error if the value was reset because it's not supported by the host. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This fixes the "deprecated" comment to have the correct format to be picked up by editors, and adds `omitempty` labels for KernelMemory and KernelMemoryTCP. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
3322447 to
427b0cd
Compare
Member
|
LGTM, but maybe we should print some warning when |
Member
Author
Perhaps we could do something yes; need to think a bit what logic to use for that warning;
For the second case, we could propagate the Are you OK with me doing that in a follow-up? |
Member
Yes 👍 |
AkihiroSuda
approved these changes
Mar 17, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #42854
Add missing
KernelMemoryTCPto docs (for/infoendpoint)Update handling of deprecated kernel (tcp) memory options
KernelMemoryandKernelMemoryTCPfields in/inforesponse if they'renot supported, or when using API v1.42 or up.
KernelMemory(as it's still needed for older API versions)by the
/infoendpoint, but we can consider removing that).reset because it's not supported by the host.
api/types: fix KernelMemory deprecation comment, and omitempty
Ignore the kernel memory option if set in
HostConfigon container create.We keep the option in the API ( for the
containers/createand/infoendpoints) until the next API version release but ignore any value it is set to.