Skip to content

Hierarchical traits configuration CLI #1616

Open
@astefanutti

Description

@astefanutti

While the trait configuration could be structured and hierarchical, it is currently limited by the flat CLI used for trait configuration. For example, if hierarchical CLI would be supported, it would be possible to execute:

$ kamel run -t route.tls.termination=... -t route.tls.certificate=... -t route.tls.key=...

Instead of:

$ kamel run -t route.tls-termination=... -t route.tls-certificate=... -t route.tls-key=...

The major benefit would be that Kubernetes/OpenShift API types could be reused directly, i.e. in that example TLSConfig.

Another example would be the container trait, where all the resource, liveness and readiness related fields would be structured together.

Also, labels would ideally be stored in maps, instead of string arrays of key/value pairs.

Also, the configuration, serialised into the Integration, IntegrationKit and IntegrationPlatform would be structured, hence more legible.

This will impact documentation generation and tooling.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreCore features of the integration platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions