Skip to content

pkg/reference: deprecate SplitObject, and remove for v2.0#10394

Merged
AkihiroSuda merged 2 commits intocontainerd:mainfrom
thaJeztah:deprecate_reference_SplitObject
Jun 29, 2024
Merged

pkg/reference: deprecate SplitObject, and remove for v2.0#10394
AkihiroSuda merged 2 commits intocontainerd:mainfrom
thaJeztah:deprecate_reference_SplitObject

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

pkg/reference: deprecate SplitObject

The behavior of this function is quite counter-intuitive, as it preserves
the delimiter in the result, and its use for external consumers would be
very limited.

Spec.Digest no longer uses this function, and it appears that BuildKit is
currently the only (publicly visible) external consumer of it.

This patch deprecates the function.

@k8s-ci-robot
Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@thaJeztah
Copy link
Copy Markdown
Member Author

I'm considering backporting this (and possibly the other PR) to the 1.7 release branch, so that we can remove it for containerd 2.0.

@thaJeztah
Copy link
Copy Markdown
Member Author

Opened a PR in BuildKit to remove the use of this function; moby/buildkit#5095

The behavior of this function is quite counter-intuitive, as it preserves
the delimiter in the result, and its use for external consumers would be
very limited.

Spec.Digest no longer uses this function, and it appears that BuildKit is
currently the only (publicly visible) external consumer of it.

This patch deprecates the function.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah changed the title pkg/reference: deprecate SplitObject pkg/reference: deprecate SplitObject, and remove for v2.0 Jun 28, 2024
@thaJeztah
Copy link
Copy Markdown
Member Author

Pushed a commit to remove it as well (for v2.0), after discussing with @dmcgowan

The 1.7 backport is only the deprecation; this PR for main also removes it.

@containerd containerd deleted a comment from thaJeztah Jun 28, 2024
@thaJeztah thaJeztah closed this Jun 28, 2024
@thaJeztah thaJeztah reopened this Jun 28, 2024
@thaJeztah thaJeztah closed this Jun 28, 2024
@thaJeztah thaJeztah reopened this Jun 28, 2024
@thaJeztah thaJeztah force-pushed the deprecate_reference_SplitObject branch from 8cf6433 to a723c0c Compare June 28, 2024 17:06
@AkihiroSuda AkihiroSuda added this pull request to the merge queue Jun 29, 2024
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 29, 2024
@AkihiroSuda AkihiroSuda added this pull request to the merge queue Jun 29, 2024
Merged via the queue into containerd:main with commit db1123b Jun 29, 2024
@thaJeztah thaJeztah deleted the deprecate_reference_SplitObject branch June 29, 2024 07:06
@chrishenzie chrishenzie added the cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/1.7.x PR commits are cherry-picked into release/1.7 branch size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants