[
https://issues.apache.org/jira/browse/FLINK-38285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Mészáros updated FLINK-38285:
------------------------------------
Description:
Overriding or setting config options using environment variables would make the
operator more Kubernetes native since it is a common practice to have settings
propagated as env var (for Deployment object) in Kubernetes.
The only issue is how to encode flink config options as env vars, what I
propose is for names:
* dot would be replaced by by underscore: "." -> "_"
* - hypen by replaced by double underscore: "-" -> "__"
* to upper case
Thus "restart-strategy.failure-rate.delay" =>
"FLINK_CONF_RESTART_{_}STRATEGY_FAILURE{_}_RATE_DELAY"
Similarly to values:
"1 m" => "1_m"
was:
Overriding or setting config options using environment variables would make the
operator more Kubernetes native since it is a common practice to have settings
propagated as env var (for Deployment object) in Kubernetes.
The only issue is how to encode flink config options as env vars, what I
propose is for names:
* dot would be replaced by by underscore: "." -> "_"
* - hypen by replaced by double underscore: "-" -> "__"
* to upper case
Thus "restart-strategy.failure-rate.delay" =>
"FLINK_CONF_RESTART__STRATEGY_FAILURE__RATE_DELAY"
Similarly to values:
"1 m" => "1_m"
> Allow to overrride config options with environment variables
> ------------------------------------------------------------
>
> Key: FLINK-38285
> URL: https://issues.apache.org/jira/browse/FLINK-38285
> Project: Flink
> Issue Type: Bug
> Components: Kubernetes Operator
> Reporter: Attila Mészáros
> Priority: Major
>
> Overriding or setting config options using environment variables would make
> the operator more Kubernetes native since it is a common practice to have
> settings propagated as env var (for Deployment object) in Kubernetes.
>
> The only issue is how to encode flink config options as env vars, what I
> propose is for names:
> * dot would be replaced by by underscore: "." -> "_"
> * - hypen by replaced by double underscore: "-" -> "__"
> * to upper case
> Thus "restart-strategy.failure-rate.delay" =>
> "FLINK_CONF_RESTART_{_}STRATEGY_FAILURE{_}_RATE_DELAY"
> Similarly to values:
> "1 m" => "1_m"
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)