8000 Support sprintf-style transformer · Issue #49 · composable-operator/composable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support sprintf-style transformer #49
Open
@dgrove-oss

Description

@dgrove-oss

A useful pattern to support would be to allow multiple inputs to be combined into a single output. A canonical use case is combining a host and port stored in different config map entries (or different secrets) into a single URL. Similar patterns occur when configuring a database (host + utl + table name).

A proposed design might be something like:

combineValueFrom:
  format: 'http://%s:%s'
  inputs:
    - getValueFrom:
      ....
    - getValueFrom:
      ....

The combineValueFrom takes a format which is expected to be a sprintf-style format string and a list of inputs, each of which is a fully-functional getValueFrom block (including format-transformers on the individual items).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0