-
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
fix(chart): remove operator namespace default for job namespaces value #1989
Conversation
Thanks @t3mi ! @AndrewChubatiuk Could you please validate this PR as this a fix to your PR #1955? |
looks like this is not a fix, but a feature |
Thanks @AndrewChubatiuk! Author mentioned in the issue stating @t3mi could you resolve the conflicts so we can proceed with merging the PR? Thank you! |
@vara-bonthu please allow CI to run to recheck the fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why the namespace where the operator runs should be treated differently compared to any other namespace. When the list of namespaces is empty, then no job namespace should be configured. If the user intends to use the operator namespace as a job namespace, then it should be explicitly configured
@yuchaoran2011 PR #1955 introduced such functionality - job namespaces value defaults to operator namespace when nothing was specified. @vara-bonthu I've updated the PR to bump the chart version and instead changed the logic per @yuchaoran2011 suggestion, please re-trigger the CI job. |
c28c0e2
to
076f140
Compare
I'm slightly confused by the discussion. The current issue is that our latest version of the code does not automatically monitor any namespaces for running jobs; instead, it requires users to explicitly configure the namespaces in the Spark Operator through values. This is an anti-pattern, as the Spark Operator should by default watch all namespaces if the configuration is left empty, as shown in the values.yaml here:
Data teams within the organization end up requesting the platform team to add more namespaces to monitor as they onboard more teams and namespaces. This requires the platform team to redeploy the Spark Operator Helm chart for every such request. Here are a couple of best practices:
|
That's correct and proposed changes remove default (to watch only in spark operator namespaces) set in the code - so if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
Waiting for another approval @yuchaoran2011 and this can be merged after |
@t3mi, a previous PR has been merged which now causes a conflict. Please resolve this conflict and update the Chart version accordingly. |
Signed-off-by: t3mi <t3mi@users.noreply.github.com>
@vara-bonthu rebased with version bump |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: t3mi, vara-bonthu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
kubeflow#1989) Signed-off-by: t3mi <t3mi@users.noreply.github.com>
kubeflow#1989) Signed-off-by: t3mi <t3mi@users.noreply.github.com>
🛑 Important:
Please open an issue to discuss significant work before you start. We appreciate your contributions and don't want your efforts to go to waste!
For guidelines on how to contribute, please review the CONTRIBUTING.md document.
Purpose of this PR
Allow opt-out for operator namespace in job namespaces value
Proposed changes:
Change Category
Indicate the type of change by marking the applicable boxes:
Rationale
Checklist
Before submitting your PR, please review the following:
Additional Notes