Skip to content
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 spark-rbac #1986

Merged
merged 4 commits into from
Apr 17, 2024
Merged

fix spark-rbac #1986

merged 4 commits into from
Apr 17, 2024

Conversation

Aransh
Copy link
Contributor

@Aransh Aransh commented Apr 17, 2024

Purpose of this PR

A recent PR has added support for multiple namespace.
Among the changes it has added the field roleRef.namespace to a roleBinding, this field does not exist and causes issues with deployments. It is also not needed as the roleBinding resource is namespaced to begin with.
You can see a similar discussion here - https://stackoverflow.com/questions/51961432/cant-to-add-namespace-field-to-roleref-in-rolebinding

Proposed changes:

  • Remove roleRef.namespace from spark roleBinding

Change Category

Indicate the type of change by marking the applicable boxes:

  • Bugfix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that could affect existing functionality)
  • Documentation update

Rationale

Checklist

Before submitting your PR, please review the following:

  • I have conducted a self-review of my own code.
  • I have updated documentation accordingly.
  • I have added tests that prove my changes are effective or that my feature works.
  • Existing unit tests pass locally with my changes.

Additional Notes

@Aransh Aransh changed the title fix spark-brac fix spark-rbac Apr 17, 2024
@MatheusAfinovicz
Copy link

+1, had the same issue this morning.
Thanks @Aransh 👍🏻

@@ -49,7 +49,6 @@ subjects:
roleRef:
kind: Role
name: spark-role
namespace: {{ $jobNamespace }}
Copy link
Contributor

@vara-bonthu vara-bonthu Apr 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AndrewChubatiuk , the support for multiple namespaces was introduced in this commit: GitHub commit link. Have you had a chance to verify if it's working as expected for you? You can also check out the PR raised by @Aransh for more details.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not needed, thanks for removing it

@vara-bonthu
Copy link
Contributor

@Aransh, could you resolve the conflicts so we can proceed with merging the PR? Thank you!

Signed-off-by: Aran Shavit <[email protected]>
Signed-off-by: Aran Shavit <[email protected]>
@Aransh
Copy link
Contributor Author

Aransh commented Apr 17, 2024

@vara-bonthu bumped version for this and #1976

@Aransh Aransh mentioned this pull request Apr 17, 2024
8 tasks
@vara-bonthu
Copy link
Contributor

vara-bonthu commented Apr 17, 2024

It does look like the checks are still failing. Could you please run the following in your local machine?

https://github.com/kubeflow/spark-operator/blob/master/docs/developer-guide.md#run-helm-chart-lint

and pre-commit https://github.com/kubeflow/spark-operator/blob/master/docs/developer-guide.md#run-helm-chart-lint

We may need to document this better in PR templates

Signed-off-by: Aran Shavit <[email protected]>
@Aransh
Copy link
Contributor Author

Aransh commented Apr 17, 2024

@vara-bonthu yup seems I'm a bit lost with this 😵‍💫
Every time I bump the version it seems to just ask me to bump it again, anyway ran these tests locally hopefully it's fine now

Copy link
Contributor

@vara-bonthu vara-bonthu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Aransh, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit c01e91d into kubeflow:master Apr 17, 2024
7 checks passed
Aransh added a commit to Aransh/spark-operator that referenced this pull request Apr 18, 2024
* remove non-existent field

Signed-off-by: Aran Shavit <[email protected]>

* bump version

Signed-off-by: Aran Shavit <[email protected]>

* README

Signed-off-by: Aran Shavit <[email protected]>

---------

Signed-off-by: Aran Shavit <[email protected]>
sigmarkarl pushed a commit to spotinst/spark-on-k8s-operator that referenced this pull request Aug 7, 2024
* remove non-existent field

Signed-off-by: Aran Shavit <[email protected]>

* bump version

Signed-off-by: Aran Shavit <[email protected]>

* README

Signed-off-by: Aran Shavit <[email protected]>

---------

Signed-off-by: Aran Shavit <[email protected]>
jbhalodia-slack pushed a commit to jbhalodia-slack/spark-operator that referenced this pull request Oct 4, 2024
* remove non-existent field

Signed-off-by: Aran Shavit <[email protected]>

* bump version

Signed-off-by: Aran Shavit <[email protected]>

* README

Signed-off-by: Aran Shavit <[email protected]>

---------

Signed-off-by: Aran Shavit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants