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

[jira] [Updated] (FLINK-27491) Support env replacement in flink-kubernetes-operator CR

     [ https://issues.apache.org/jira/browse/FLINK-27491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yang Wang updated FLINK-27491:
------------------------------
    Component/s: Runtime / Configuration

> Support env replacement in flink-kubernetes-operator CR
> -------------------------------------------------------
>
>                 Key: FLINK-27491
>                 URL: https://issues.apache.org/jira/browse/FLINK-27491
>             Project: Flink
>          Issue Type: Improvement
>          Components: Kubernetes Operator, Runtime / Configuration
>            Reporter: Yang Wang
>            Priority: Major
>
> Flink deployment resources support env interpolation natively using $() syntax[1]. Users expected this to "just work" like other resources when using the operator, but it does not.
> It would be a great addition, simplifying job startup decision-making while following existing conventions.
>  
>  
> {code:java}
> job:
>   jarURI: local:///my.jar
>   entryClass: my.JobMainKt
>   args:
>     - "--kafka.bootstrap.servers"
>     - "my.kafka.host:9093"
>     - "--kafka.sasl.username"
>     - "$(KAFKA_SASL_USERNAME)"
>     - "--kafka.sasl.password"
>     - "$(KAFKA_SASL_PASSWORD)" {code}
>  
> [1]. [https://kubernetes.io/docs/tasks/inject-data-application/_print/#use-environment-variables-to-define-arguments]
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)