You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2022/03/11 07:21:00 UTC

[jira] [Commented] (FLINK-26570) Remote module configuration interpolation

    [ https://issues.apache.org/jira/browse/FLINK-26570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17504762#comment-17504762 ] 

Till Rohrmann commented on FLINK-26570:
---------------------------------------

Thanks for creating this ticket [~Fil Karnicki]. I like this idea. Could environment variables be another mechanism to supply placeholder values?

> Remote module configuration interpolation
> -----------------------------------------
>
>                 Key: FLINK-26570
>                 URL: https://issues.apache.org/jira/browse/FLINK-26570
>             Project: Flink
>          Issue Type: Improvement
>          Components: Stateful Functions
>            Reporter: Fil Karnicki
>            Priority: Major
>
> Add the ability for users to provide placeholders in module.yaml, e.g.
> {code:java}
> kind: com.foo.bar/test
> spec:
>   something: ${REPLACE_ME}
>   transport:
>     password: ${REPLACE_ME_WITH_A_SECRET}
>     array:
>       - ${REPLACE_ME}
>       - sthElse {code}
> These placeholders would be resolved inĀ 
> org.apache.flink.statefun.flink.core.jsonmodule.RemoteModule#bindComponent
> usingĀ 
> {code:java}
> ParameterTool.fromSystemProperties().mergeWith(ParameterTool.fromMap(globalConfiguration) {code}
> by traversing the ComponentJsonObject.specJsonNode() and replacing values that contain placeholders with values from the combined system+globalConfig map



--
This message was sent by Atlassian Jira
(v8.20.1#820001)