Merge branch 'CNT-4774/implement-set-for-crio' into 'main'

Implement Set() for the crio implementation of engine.Interface

See merge request nvidia/container-toolkit/container-toolkit!517
This commit is contained in:
Evan Lezar 2023-12-05 09:30:42 +00:00
commit 7b47eee634

View File

@ -101,8 +101,12 @@ func (c *Config) RemoveRuntime(name string) error {
return nil
}
// Set is not supported for cri-o configs.
func (c *Config) Set(key string, value interface{}) {}
// Set sets the specified cri-o option.
func (c *Config) Set(key string, value interface{}) {
config := (toml.Tree)(*c)
config.Set(key, value)
*c = (Config)(config)
}
// Save writes the config to the specified path
func (c Config) Save(path string) (int64, error) {