Skip to content

Conversation

elezar
Copy link
Member

@elezar elezar commented Aug 28, 2025

This change refactors the AddRuntime function into GetDefaultRuntimeOptions and AddRuntimeWithOptions. This allows for a clearer distinction between SOURCE and DESTINATION configs which should facilitate switching to drop-in files.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 17298873827

Details

  • 48 of 59 (81.36%) changed or added relevant lines in 3 files are covered.
  • 8 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.008%) to 35.733%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/config/engine/containerd/config_v1.go 11 22 50.0%
Files with Coverage Reduction New Missed Lines %
pkg/config/engine/containerd/config_v1.go 8 18.18%
Totals Coverage Status
Change from base Build 17293965431: -0.008%
Covered Lines: 4656
Relevant Lines: 13030

💛 - Coveralls

This change refactors the AddRuntime function into GetDefaultRuntimeOptions
and AddRuntimeWithOptions. This allows for a clearer distinction between SOURCE
and DESTINATION configs which should facilitate switching to drop-in files.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the clean-runtime-config-api branch from aec10b2 to 5d37aba Compare August 28, 2025 15:09
"runtime_type": c.RuntimeType,
"runtime_root": "",
"runtime_engine": "",
"privileged_without_host_devices": false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if, on this fallback, we should add the SystemdCgroup = true|false based on a function that looks if the system is running systemd.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent of this change is not to add additional behaviour. It is a refactor.

}

config = *c.Tree
// Note: This is deprecated in containerd 1.4.0 and will be removed in 1.5.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we edit the note, now that 1.5.0 is released? and add a warning log.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent of this change is not to add additional behaviour. It is a refactor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants