Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

support config options through annotationsΒ #753

@bergwolf

Description

@bergwolf

As we were discussing the agent hook pr (kata-containers/agent#365 (comment)), we might want to support specifying all kata configs through labels or annotations, and then there is no dependency on a fixed cli configuration and each pod can be customized. The issue is created to track the feature/discussion.

A simple suggestion can be that we define a format like io.kata-containers.config.<subsystem>.<key>. Then we can have labels/annotations:

  1. io.kata-containers.config.hypervisor.qemu.path: the qemu path in hypervisor.qemu section
  2. io.kata-containers.config.shim.kata.enable_debug: the enable_debug option in shim.kata section

etc.

We can still have a default config in configuration.toml, and the per pod annotation configs takes a higher priority and override the values in configuration.toml.

The use case is to support very flexible controllers that can customize any config options we support on a per pod basis.

/cc @jodh-intel @amshinde @eguzman3 @egernst

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions