-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sprintf-style transformer #49
Labels
enhancement
New feature or request
Comments
TMaYaD
added a commit
to tildabio/composable
that referenced
this issue
Oct 22, 2021
Supports the following syntax as described in composable-operator#49 ```yaml interpolateValuesFrom: format: 'http://%s:%s' inputs: - getValueFrom: .... - getValueFrom: .... ```
TMaYaD
added a commit
to tildabio/composable
that referenced
this issue
Oct 29, 2021
Supports the following syntax as described in composable-operator#49 ```yaml interpolateValuesFrom: format: 'http://%s:%s' inputs: - getValueFrom: .... - getValueFrom: .... ```
TMaYaD
added a commit
to tildabio/composable
that referenced
this issue
Oct 29, 2021
Supports the following syntax as described in composable-operator#49 ```yaml interpolateValuesFrom: format: 'http://%s:%s' inputs: - getValueFrom: .... - getValueFrom: .... ```
TMaYaD
added a commit
to tildabio/composable
that referenced
this issue
Oct 29, 2021
Supports the following syntax as described in composable-operator#49 ```yaml interpolateValuesFrom: format: 'http://%s:%s' inputs: - kind: Service name: myservice path: '{.spec.clusterIP}' - kind: Service name: myservice path: '{.spec.ports[0].port}' ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
The
combineValueFrom
takes aformat
which is expected to be a sprintf-style format string and a list of inputs, each of which is a fully-functionalgetValueFrom
block (including format-transformers on the individual items).The text was updated successfully, but these errors were encountered: