Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-26570

Remote module configuration interpolation

    XMLWordPrintableJSON

Details

    Description

      Add the ability for users to provide placeholders in module.yaml, e.g.

      kind: com.foo.bar/test
      spec:
        something: ${REPLACE_ME}
        transport:
          password: ${REPLACE_ME_WITH_A_SECRET}
          array:
            - ${REPLACE_ME}
            - sthElse 

      These placeholders would be resolved inĀ 

      org.apache.flink.statefun.flink.core.jsonmodule.RemoteModule#bindComponent

      usingĀ 

      ParameterTool.fromSystemProperties().mergeWith(ParameterTool.fromMap(globalConfiguration) 

      by traversing the ComponentJsonObject.specJsonNode() and replacing values that contain placeholders with values from the combined system+globalConfig map

      Attachments

        Activity

          People

            Fil Karnicki Fil Karnicki
            Fil Karnicki Fil Karnicki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: