[
https://issues.apache.org/jira/browse/FLINK-37391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18009137#comment-18009137
]
Kumar Mallikarjuna commented on FLINK-37391:
--------------------------------------------
I verified [~nishita0905]'s suggestion . It works. I used the following
configuration:
{code:java}
kubernetes.operator.dynamic.config.enabled: true
kubernetes.operator.dynamic.namespaces.enabled: true {code}
I see it's not obvious that the informer is updated with
{_}kubernetes.operator.dynamic.config.enabled{_}. It would be good to clarify
the behaviour in the docs. I'll raise a PR.
> Change watchNamespace config in operator is not respected while running
> -----------------------------------------------------------------------
>
> Key: FLINK-37391
> URL: https://issues.apache.org/jira/browse/FLINK-37391
> Project: Flink
> Issue Type: Bug
> Components: Kubernetes Operator
> Affects Versions: 1.10.0, 1.19.0
> Reporter: Fabian Paul
> Priority: Major
>
> The Flink operator allows the limiting of the watched namespaces by setting
> the `watchNamespaces` config during helm installation and upgrades.
>
> Currently, the configuration is only loaded into operator during the initial
> start
> [https://github.com/apache/flink-kubernetes-operator/blob/9eb3c385b90a5a2f08376720f3204d1784981a0c/flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/FlinkOperator.java#L247]
> leading to that updating the watched namespaces doesn't inform the java
> process and only create the necessary k8s resources, e.g., service account
> via the helm upgrade.
>
> One idea could be that changing watchNamespaces triggers a restart of the
> operator pod and, hence reinitializes the watch behavior.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)