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

[release/1.7] snapshots: emit deprecation warning for aufs #9436

Merged

Conversation

samuelkarp
Copy link
Member

@samuelkarp samuelkarp commented Nov 29, 2023

Part of #9312

aufs snapshotter is already removed from main, so this PR is directly against 1.7. However, the approach here is a bit weird, and I'm open to feedback on doing it differently if that's warranted. Here's the weirdness:

  • aufs snapshotter is in a separate repo and currently depends on containerd 1.6.12
  • The plugin itself has no dependencies
  • Adding a dependency on the warning service would require:
    • an update to containerd 1.6 adding the new warning ID (and, preferably, a release)
    • updating the go module dependency in the aufs snapshotter
    • adding a dependency to the plugin
    • finally, updating the dependency in the containerd 1.6 and 1.7 release branches

So instead of that, I added the warning service as a dependency of the snapshot service, and emit the warning from there. It's certainly less elegant, but it was many fewer steps.

Signed-off-by: Samuel Karp <samuelkarp@google.com>
@samuelkarp samuelkarp mentioned this pull request Nov 29, 2023
3 tasks
@AkihiroSuda AkihiroSuda changed the title snapshots: emit deprecation warning for aufs [release/1.7] snapshots: emit deprecation warning for aufs Nov 29, 2023
@samuelkarp
Copy link
Member Author

/retest

@AkihiroSuda AkihiroSuda added the cherry-pick/1.6.x Change to be cherry picked to release/1.6 branch label Nov 30, 2023
@estesp estesp merged commit 181449d into containerd:release/1.7 Nov 30, 2023
49 checks passed
@samuelkarp
Copy link
Member Author

/cherrypick release/1.6

@k8s-infra-cherrypick-robot

@samuelkarp: #9436 failed to apply on top of branch "release/1.6":

Applying: snapshots: emit deprecation warning for aufs
Using index info to reconstruct a base tree...
M	pkg/deprecation/deprecation.go
M	services/snapshots/service.go
Falling back to patching base and 3-way merge...
Auto-merging services/snapshots/service.go
CONFLICT (content): Merge conflict in services/snapshots/service.go
Auto-merging pkg/deprecation/deprecation.go
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 snapshots: emit deprecation warning for aufs
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

In response to this:

/cherrypick release/1.6

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/snapshotter cherry-pick/1.6.x Change to be cherry picked to release/1.6 branch size/M
Projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants