pkg/config: turn Annotations into attributedstring.Slice

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg 2023-10-25 13:48:03 +02:00
parent b8c3014c2a
commit 04569d2f52
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ type ContainersConfig struct {
ApparmorProfile string `toml:"apparmor_profile,omitempty"`
// Annotation to add to all containers
Annotations []string `toml:"annotations,omitempty"`
Annotations attributedstring.Slice `toml:"annotations,omitempty"`
// BaseHostsFile is the path to a hosts file, the entries from this file
// are added to the containers hosts file. As special value "image" is

View File

@ -191,7 +191,7 @@ func defaultConfig() (*Config, error) {
return &Config{
Containers: ContainersConfig{
Annotations: []string{},
Annotations: attributedstring.Slice{},
ApparmorProfile: DefaultApparmorProfile,
BaseHostsFile: "",
CgroupNS: cgroupNS,