Skip to content

feat: implement Workspace Update API method#913

Open
andyatmiami wants to merge 1 commit intokubeflow:notebooks-v2from
andyatmiami:feat/update-workspace-api-impl
Open

feat: implement Workspace Update API method#913
andyatmiami wants to merge 1 commit intokubeflow:notebooks-v2from
andyatmiami:feat/update-workspace-api-impl

Conversation

@andyatmiami
Copy link
Contributor

Closes: #848

This commit delivers the following:

  • Complete the UpdateWorkspace repository method which was previously a stub (GH [TASK] Implement Workspace Update API endpoint #848).
    • Apply all mutable spec fields from the update model to the K8s Workspace object and persist via client.Update().
  • Add handler tests for successful update, 409 stale revision, and 404 not found.

Not included in this PR and to be addressed in a follow up:

  • Retrying on 409 response from k8s server to account for stale cache
    • TODO comment still in code calling out this need

@github-project-automation github-project-automation bot moved this to Needs Triage in Kubeflow Notebooks Feb 16, 2026
@google-oss-prow google-oss-prow bot added the area/backend area - related to backend components label Feb 16, 2026
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from andyatmiami. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@google-oss-prow google-oss-prow bot added area/v2 area - version - kubeflow notebooks v2 size/L labels Feb 16, 2026
@andyatmiami
Copy link
Contributor Author

/ok-to-test

@andyatmiami andyatmiami force-pushed the feat/update-workspace-api-impl branch 2 times, most recently from 77be3c1 to 3650186 Compare March 8, 2026 18:02
@andyatmiami
Copy link
Contributor Author

/hold

need to refactor this a bit to leverage the additional validation abilities exposed in #905

@andyatmiami andyatmiami force-pushed the feat/update-workspace-api-impl branch 2 times, most recently from 0710184 to 21fce67 Compare March 8, 2026 19:22
@google-oss-prow google-oss-prow bot added size/XL and removed size/L labels Mar 8, 2026
@andyatmiami
Copy link
Contributor Author

/unhold

changes from #905 have been incorporated and an Update test has been added for resources that don't have can-use: true

This commit delivers the following:
- Complete the UpdateWorkspace repository method which was previously a stub (GH kubeflow#848).
    - Apply all mutable spec fields from the update model to the K8s Workspace object and persist via client.Update().
- Add handler tests for successful update, 409 stale revision, and 404 not found.

Not included in this PR and to be addressed in a follow up:
- Retrying on 409 response from k8s server to account for stale cache
    - TODO comment still in code calling out this need

Signed-off-by: Andy Stoneberg <astonebe@redhat.com>
@andyatmiami andyatmiami force-pushed the feat/update-workspace-api-impl branch from 21fce67 to 09e2ada Compare March 8, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/backend area - related to backend components area/v2 area - version - kubeflow notebooks v2 ok-to-test size/XL

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

1 participant