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

jupyter-web-app defines RoleBinding for non-existing ServiceAccount jupyter-notebook #2601

Open
kromanow94 opened this issue Jan 24, 2024 · 6 comments
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@kromanow94
Copy link
Contributor

Description

The jupter-web-app defined in apps/jupyter/jupyter-web-app/upstream/base defines role-binding.yaml for a ServiceAccount that doesn't exist: jupyter-notebook.

The app is still working correctly because of a ClusterRoleBinding in cluster-role-binding.yaml. This cluster-role-binding.yaml references cluster-role.yaml with rules that consist and extends the rules defined in cluster-role.yaml.

Considering the above, I think it makes sense to delete both the role.yaml and role-binding.yaml

@juliusvonkohout
Copy link
Member

are you sure that this serviceaccount does not exist in a single user / development deployment? We probably need to fix it in Kubeflow/kubeflow then.

@kromanow94
Copy link
Contributor Author

I checked across the kubeflow/kubeflow and kubeflow/manifests repository and it's true for both:

$ grep -RnI jupyter-notebook | grep -v "\.md" 
manifests/apps/jupyter/jupyter-web-app/upstream/base/role.yaml:4:  name: jupyter-notebook-role
manifests/apps/jupyter/jupyter-web-app/upstream/base/role-binding.yaml:4:  name: jupyter-notebook-role-binding
manifests/apps/jupyter/jupyter-web-app/upstream/base/role-binding.yaml:8:  name: jupyter-notebook-role
manifests/apps/jupyter/jupyter-web-app/upstream/base/role-binding.yaml:11:  name: jupyter-notebook
kubeflow/components/crud-web-apps/jupyter/manifests/base/role.yaml:4:  name: jupyter-notebook-role
kubeflow/components/crud-web-apps/jupyter/manifests/base/role-binding.yaml:4:  name: jupyter-notebook-role-binding
kubeflow/components/crud-web-apps/jupyter/manifests/base/role-binding.yaml:8:  name: jupyter-notebook-role
kubeflow/components/crud-web-apps/jupyter/manifests/base/role-binding.yaml:11:  name: jupyter-notebook

For now I'll be focusing or more critical Issues/PRs but I'll get back to it sometime in future.

@juliusvonkohout
Copy link
Member

CC @thesuperzapper @kimwnasptd then.

@nishi-t
Copy link

nishi-t commented Jun 23, 2024

@kromanow94 @juliusvonkohout Hi, I am interested in contributing to the kubeflow project and have started working on this issue. I have submitted a PR to 'kubeflow/kubeflow'. Your review would be greatly appreciated.

Please let me know if you also need PR for kubeflow/manifests.

@juliusvonkohout
Copy link
Member

juliusvonkohout commented Jun 24, 2024

@kromanow94 @juliusvonkohout Hi, I am interested in contributing to the kubeflow project and have started working on this issue. I have submitted a PR to 'kubeflow/kubeflow'. Your review would be greatly appreciated.

Please let me know if you also need PR for kubeflow/manifests.

@nishi-t The PR kubeflow/kubeflow#7616 will be merged by @thesuperzapper or @kimwnasptd and then I can synchronize it back to kubeflow/manifetsts and close the issue here as well.

@juliusvonkohout juliusvonkohout self-assigned this Jun 24, 2024
@nishi-t
Copy link

nishi-t commented Jun 24, 2024

@juliusvonkohout Thank you for your comment. I understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: To Do
Development

Successfully merging a pull request may close this issue.

3 participants