-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Spark Operator Deployment Not Handling Multiple Namespaces #2052
Comments
Hi @vara-bonthu, it dose not support multiple specified namespaces if you have read the deployment.yaml like this:
if you set more that one namespace, it will use default value that is all namespace |
You are correct that the current Helm template only allows specifying either a single namespace or all namespaces if more than one is defined. This makes the
To provide better support for users who want to deploy multiple instances of Spark Operator and monitor dedicated namespaces, it would be beneficial to implement support for multiple namespaces per deployment. For example, allowing This enhancement would improve flexibility and align with user expectations based on our documentation. I will change this to feature request .Thanks |
OK, I will try to do this |
Hi @vara-bonthu, multi namespace support has been widely discussed in many repo, #507, #25692, #74415 In this repo, InformerFactory code generated by code-generator only support one or all namespace due to libaray api restriction, and there are there possible solution:
But I don't think those are best solution |
@imtzer Thanks for the summary. I looked into refactoring the code base using controller-runtime with a co-worker years ago but didn't follow through on it due to the massive scale of changes required. It will basically be a rewrite. But probably can be the right thing to do at some point. |
@vara-bonthu thank you very much.... i have been stuck on this for past 2 weeks. The rational behind our problem is that with number of concurrent jobs increasing for our cluster across various namespaces we are seeing performance issues with the spark-operator pod and hence wanted to deploy multiple spark-operators each handling 2-3 namespaces (for us 1 namespace = 1 team). This change will help for sure. |
Description
Please provide a clear and concise description of the issue you are encountering, and a reproduction of your configuration.
If your request is for a new feature, please use the
Feature request
template.Description:
When deploying the Spark Operator with Helm, the following behaviors were observed:
Deploying with a single namespace works as expected.
Deploying with an empty list correctly monitors all namespaces.
Deploying with multiple namespaces as a list as shown below. Deployment is successful but it is not monitoring any namespace.
Reproduction Code [Required]
Steps to reproduce the behavior:
Expected behavior
The Spark Operator should be able to monitor multiple specified namespaces when provided as a list.
Actual behavior
The Spark Operator deployment starts, but it does not monitor any of the specified namespaces when provided as a list.
Terminal Output Screenshot(s)
Environment & Versions
Additional context
The text was updated successfully, but these errors were encountered: