Update kubeflow/notebooks manifests to v2.0.0-beta.0 #3584
May we also get a tiny dashboard release? There were a lot of security fixes.
This fixture still includes filter rules, activity rules, three unused image configurations, and two unused pod configurations, although the test selects only jupyter-scipy:v1.10.0 and tiny_cpu. Unrelated sample or schema changes can therefore break this pipeline test and require duplicate maintenance. Reduce the fixture to the minimum WorkspaceKind required by the selected image, pod configuration, and ServiceAccount grants.
The workflow path filter tracks this script but not the newly referenced fixture. A change limited to tests/workspacekind.test.yaml will therefore skip the end-to-end test that consumes it. Add that fixture to .github/workflows/workspaces_pipeline_run_test.yaml so fixture changes are validated.
Use the precise Kubernetes resource name ServiceAccount instead of the abbreviation SA, matching the terminology used in the surrounding explanation.
Pull request overview
Synchronizes Kubeflow Workspaces manifests with v2.0.0-beta.0 and adapts pipeline testing to per-Workspace ServiceAccounts.
Changes:
Reviewed changes
Copilot reviewed 27 out of 27 changed files in this pull request and generated 3 comments.
<details>
<summary>Show a summary per file</summary>
| File | Description |
| ---- | ----------- |
| tests/workspaces_pipeline_run_test.sh | Uses the test-specific WorkspaceKind. |
| tests/workspacekind.test.yaml | Adds the pipeline-test WorkspaceKind. |
| scripts/synchronize-kubeflow-workspaces-manifests.sh | Pins the new release. |
| applications/workspaces/upstream/frontend/components/istio/authorization-policy.yaml | Updates selector labels. |
| applications/workspaces/upstream/frontend/components/common/kustomization.yaml | Separates selector and template labels. |
| applications/workspaces/upstream/frontend/base/kustomization.yaml | Updates the frontend image. |
| applications/workspaces/upstream/controller/samples/rstudio_v1beta1_workspacekind.yaml | Updates the RStudio sample. |
| applications/workspaces/upstream/controller/samples/jupyterlab_v1beta1_workspacekind.yaml | Documents new WorkspaceKind capabilities. |
| applications/workspaces/upstream/controller/samples/jupyterlab_v1beta1_workspace.yaml | Adds a display name example. |
| applications/workspaces/upstream/controller/samples/common/workspace_service_account.yaml | Removes the obsolete ServiceAccount. |
| applications/workspaces/upstream/controller/samples/common/kustomization.yaml | Removes the obsolete sample resource. |
| applications/workspaces/upstream/controller/samples/codeserver_v1beta1_workspacekind.yaml | Updates the code-server sample. |
| applications/workspaces/upstream/controller/overlays/istio-prometheus/kustomization.yaml | Adds the Prometheus overlay. |
| applications/workspaces/upstream/controller/components/prometheus/network-policy.yaml | Allows metrics scraping. |
| applications/workspaces/upstream/controller/components/prometheus/monitor.yaml | Updates monitor selectors. |
| applications/workspaces/upstream/controller/components/prometheus/kustomization.yaml | Includes the metrics network policy. |
| applications/workspaces/upstream/controller/components/common/kustomization.yaml | Separates selector and template labels. |
| applications/workspaces/upstream/controller/base/manager/user_cluster_roles.yaml | Adds WorkspaceKind administrator permissions. |
| applications/workspaces/upstream/controller/base/manager/role.yaml | Expands controller permissions. |
| applications/workspaces/upstream/controller/base/manager/kustomization.yaml | Updates the controller image. |
| applications/workspaces/upstream/controller/base/crd/kubeflow.org_workspaces.yaml | Extends Workspace fields and status. |
| applications/workspaces/upstream/controller/base/crd/kubeflow.org_workspacekinds.yaml | Adds filtering, activity, and ServiceAccount schemas. |
| applications/workspaces/upstream/backend/components/istio/authorization-policy.yaml | Updates selector labels. |
| applications/workspaces/upstream/backend/components/common/kustomization.yaml | Separates selector and template labels. |
| applications/workspaces/upstream/backend/base/rbac.yaml | Adds logs and metrics permissions. |
| applications/workspaces/upstream/backend/base/kustomization.yaml | Updates the backend image. |
| applications/workspaces/upstream/backend/base/deployment.yaml | Removes the obsolete authentication flag. |
</details>
---
💡 <a href="/kubeflow/community-distribution/new/master?filename=.github/skills/code-review/SKILL.md" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Add a code-review agent skill</a> or configure MCP servers for context-aware, tailored reviews. <a href="https://docs.github.com/en/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review#mcp-servers-and-agent-skills" class="Link--inTextBlock" target="_blank" rel="noopener noreferrer">Learn more in the docs.</a>
For what is this needed ?
for what is this needed ?
THat is exactly what i was looking forward to :-) when i dsicussed the requirements
What is missing is a maximum lifetime with or without activity.
so maxRunningSeconds
See https://github.com/kubeflow/notebooks/pull/1310 & https://github.com/kubeflow/notebooks/pull/1267
<img width="1920" height="951" alt="image" src="https://github.com/user-attachments/assets/5a980d15-9a42-4f6c-ba0f-1109ba624d9a" />
See the new feature that I also used in 4aff0fcedb2d3caa06f8d8b52217d65a5c1d11c8 which dynamically generates the service account for the Workspace: https://github.com/kubeflow/notebooks/pull/1311
I don't understand the question, could you clarify? 🤔 Currently there is no maxRunningSeconds, the idea is that this is something that always depends on the activity of the workspace (although cluster admins can define themselves what "being active" actually means) 😊
Yes I need maxRunningSeconds so something independent of the activity. This can be helpful to make sure that workspaces are not abused for long-running jobs.For example by setting a not yet implemente limit of 5 days for the work week in maxRunningSeconds and paired with 2 days secondsSinceActive that would make sure that over the weekend everything is cleaned up.
That is a big problem for many implementations. Is there a way to disable that and keep the default-editor for now for all Workspaces? many external automation at companies rely on using default-editor.
If that is a usecase for your please collaborate on kubeflow/notebooks to make it happen 🤗
I'm not sure I follow totally, can't they just re-assign the previous permissions?
spec:
podTemplate:
serviceAccount:
clusterRoles:
- name: "kubeflow-edit" # or whichever ClusterRole was previously bound to default-editor
Also, especially from a security standpoint it is really not a good idea to give everyone default-editor 😅
Anyways, this discussion is beyond the scope of this sync PR 😅
@juliusvonkohout @tarekabouzeid could we get this merged? 😊
It is about workload identity and other things. Is it better security wise yes, but that means a lot of external integration that targets default-editor has to be adapted.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: <a href="https://github.com/kubeflow/community-distribution/pull/3584#issuecomment-5394355206" title="Approved">juliusvonkohout</a>
The full list of commands accepted by this bot can be found here.
The pull request process is described here
<details >
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
</details>
<!-- META={"approvers":[]} -->
juliusvonkohout
christian-heusel
Pull Request Template for Kubeflow Manifests
✏️ Summary of Changes
Synchronize the changes from the latest Kubeflow Workspaces release:
https://github.com/kubeflow/notebooks/releases/tag/v2.0.0-beta.0
📦 Dependencies
_None_
🐛 Related Issues
_None_
✅ Contributor Checklist