[
https://issues.apache.org/jira/browse/FLINK-27491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532193#comment-17532193
]
Gyula Fora commented on FLINK-27491:
------------------------------------
I don't really see how this could be done on the operator side without any
Flink changes unfortunately as the variables must be resolved on the deployment
side.
> 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
> 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)