Skip to content

libcontainerd/local: remove unused code and arguments#49551

Merged
thaJeztah merged 5 commits intomoby:masterfrom
thaJeztah:libcontainerd_less_stubbing
Feb 28, 2025
Merged

libcontainerd/local: remove unused code and arguments#49551
thaJeztah merged 5 commits intomoby:masterfrom
thaJeztah:libcontainerd_less_stubbing

Conversation

@thaJeztah
Copy link
Member

libcontainerd/local: client.extractResourcesFromSpec: use early return

libcontainerd/local: client.NewContainer: use early return

Also remove an intermediate var, and remove a "WithError" in favor of
adding the error field to the "WithFields".

libcontainerd/local: client.createWindows: remove unused runtimeOptions

The "local" client does not use containerd, but implements the same interface,
many args are not used though, so remove these to make it more clear what's
actually in use.

libcontainerd/local: NewClient: remove unused cli, stateDir, ns args

The "local" client does not use containerd, but implements the same interface,
many args are not used though, so remove these to make it more clear what's
actually in use.

libcontainerd/local: remove arg-names for stubs

- How to verify it

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Also remove an intermediate var, and remove a "WithError" in favor of
adding the error field to the "WithFields".

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The "local" client does not use containerd, but implements the same interface,
many args are not used though, so remove these to make it more clear what's
actually in use.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The "local" client does not use containerd, but implements the same interface,
many args are not used though, so remove these to make it more clear what's
actually in use.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 28.0.2 milestone Feb 28, 2025
@thaJeztah thaJeztah merged commit 41f781f into moby:master Feb 28, 2025
159 checks passed
@thaJeztah thaJeztah deleted the libcontainerd_less_stubbing branch February 28, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants