KannarFr commented on issue #6348: [Issue 6170][functions] add custom property option to functions URL: https://github.com/apache/pulsar/pull/6348#issuecomment-587937654 That's it! All seems perfect then. Le mar. 18 févr. 2020 à 23:17, Neng Lu <[email protected]> a écrit : > Hi @KannarFr <https://github.com/KannarFr>, Just want to confirm if the > following solution meet your needs (Notice the last line of > customRuntimeOptions): > > tenant: "test"namespace: "test-namespace"name: "example"className: "org.apache.pulsar.functions.api.examples.ExclamationFunction"inputs: ["test_src"]userConfig: > "PublishTopic": "test_result"output: "test_result"autoAck: trueparallelism: 1customRuntimeOptions: "-DmyProp=${MY_PROP}" > > and when you create function with this yaml file, the variable ${MY_PROP} > will be automatically replaced with the actual system property value. > > Let me know your thoughts. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/apache/pulsar/pull/6348?email_source=notifications&email_token=ABZLQJIUSGWBTOZJTEDKAXTRDRM5ZA5CNFSM4KWWN7P2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMFR7PQ#issuecomment-587931582>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABZLQJLM6ZDOB4UCTQBVIH3RDRM5ZANCNFSM4KWWN7PQ> > . >
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
