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

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

Yang Wang created FLINK-27491:
---------------------------------

             Summary: 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
            Reporter: Yang Wang


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)