Skip to content

Allow sub-tree injection in configuration framework #183

Description

@urbim

If __kumuluzee-inject property is defined, inject all configuration from that sub-tree.

The goal is to support something like this:

config.yml:

kumuluzee:
  health:
    checks:
      kafka-health-check:
        __kumuluzee-inject: "kumuluzee.streaming.producer"
        a: 2 # override
        c: 3 # define new

  streaming:
    producer:
      a: 1 # gets overridden
      b: test # defines new
      d:
        e: nested # defines nested

This would create effective configuration:

kumuluzee:
  health:
    checks:
      kafka-health-check:
        a: 2
        b: test
        c: 3
        d:
          e: nested

  streaming:
    producer:
      a: 1
      b: test
      d:
        e: nested

This allows developers to write repeatable configuration only once (DRY) while still allowing overrides to be defined.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions