MaksimAniskov opened a new pull request, #1038: URL: https://github.com/apache/flink-kubernetes-operator/pull/1038
This change fixes support for _FlinkStateSnapshot_ CRDs getting disabled if the operator deployed using [the Helm chart](https://github.com/apache/flink-kubernetes-operator/tree/main/helm/flink-kubernetes-operator) and the operator's namespace not listed in [_watchNamespaces_ value](https://github.com/apache/flink-kubernetes-operator/blob/release-1.13/helm/flink-kubernetes-operator/values.yaml#L23). The operator's [isCrdInstalled](https://github.com/apache/flink-kubernetes-operator/blob/release-1.13/flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/utils/KubernetesClientUtils.java#L73) check requires _list_ permission for _flinkstatesnaphots_ verb in the operator's namespace. When the namespace listed in _watchNamespaces_, lines 24-32 of _helm/flink-kubernetes-operator/templates/rbac/role.yaml_ create the Kubernetes role with necessary permission as defined in helm/flink-kubernetes-operator/templates/rbac/_helpers.tpl When the operator's namespace isn't in _watchNamespaces_, another part of the template defines the role. This part should also define the permission. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
