Skip to content

Conversation

bhaktinarvekar
Copy link

…creation

This update enhances the WorkspaceKind POST API to properly perform dry-run validation at the Kubernetes API layer. When dry_run=true is specified, the request now invokes controller-runtime’s Create API with dry-run semantics, allowing validation errors to be surfaced directly from Kubernetes (e.g., schema or webhook errors).

Changes include:

  • Added CreateOptions with DryRunAll for dry-run requests
  • Unified create logic for both dry-run and normal requests
  • Improved error propagation and response mapping
  • Updated tests for dry-run and standard create flows

@github-project-automation github-project-automation bot moved this to Needs Triage in Kubeflow Notebooks Oct 5, 2025
@google-oss-prow google-oss-prow bot added the area/backend area - related to backend components label Oct 5, 2025
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 assign andyatmiami for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 added area/v2 area - version - kubeflow notebooks v2 size/L labels Oct 5, 2025
@bhaktinarvekar bhaktinarvekar changed the title feat(api): add Kubernetes-layer dry-run validation for WorkspaceKind … feat: add Kubernetes-layer dry-run validation for WorkspaceKind … Oct 5, 2025
…creation

This update enhances the WorkspaceKind POST API to properly perform
dry-run validation at the Kubernetes API layer. When `dry_run=true` is
specified, the request now invokes controller-runtime’s Create API with
dry-run semantics, allowing validation errors to be surfaced directly
from Kubernetes (e.g., schema or webhook errors).

Changes include:
- Added CreateOptions with DryRunAll for dry-run requests
- Unified create logic for both dry-run and normal requests
- Improved error propagation and response mapping
- Updated tests for dry-run and standard create flows

Signed-off-by: Bhakti Narvekar <[email protected]>
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 size/L
Projects
Status: Needs Triage
Development

Successfully merging this pull request may close these issues.

1 participant