Skip to content

[WIP]Add client logic for model transfer job#2231

Open
ppadti wants to merge 9 commits intokubeflow:mainfrom
ppadti:model-transfer-jobs
Open

[WIP]Add client logic for model transfer job#2231
ppadti wants to merge 9 commits intokubeflow:mainfrom
ppadti:model-transfer-jobs

Conversation

@ppadti
Copy link
Contributor

@ppadti ppadti commented Feb 16, 2026

Description

This is the follow pr to #2183
This PR aims to add the client logic to Create and update. Added tests and updated the readme file

How Has This Been Tested?

curl cmd:
GET:

curl -X GET "http://localhost:4000/api/v1/model_registry/model-registry/model_transfer_jobs?namespace=kubeflow" \
  -H "Content-Type: application/json" \
  -H "kubeflow-userid: user@example.com" 

POST:

curl -X POST "http://localhost:4000/api/v1/model_registry/model-registry-service/model_transfer_jobs?namespace=kubeflow" \
  -H "Content-Type: application/json" \
  -H "kubeflow-userid: user@example.com" \
  -d '{
    "data": {
      "name": "my-job",
      "source": {"type": "uri", "uri": "https://example.com/model.bin"},
      "destination": {"type": "oci", "uri": "quay.io/myorg/myimage:v1", "username": "myuser", "password": "mypassword"},
      "uploadIntent": "create_model",
      "registeredModelName": "My Model",
      "modelVersionName": "v1.0.0"
    }
  }'

PATCH:

curl -X PATCH "http://localhost:4000/api/v1/model_registry/model-registry-service/model_transfer_jobs/JOB_NAME?namespace=kubeflow" \
  -H "Content-Type: application/json" \
  -H "kubeflow-userid: user@example.com" \
  -d '{"data": {"name": "new-job-name"}}'

DELETE:

curl -X DELETE "http://localhost:4000/api/v1/model_registry/model-registry/model_transfer_jobs/transfer-job-001?namespace=bella-namespace" \
  -H "kubeflow-userid: user@example.com"

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)
  • The commits have meaningful messages
  • Automated tests are provided as part of the PR for major new functionalities; testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work.
  • Code changes follow the kubeflow contribution guidelines.
  • For first time contributors: Please reach out to the Reviewers to ensure all tests are being run, ensuring the label ok-to-test has been added to the PR.

If you have UI changes

  • The developer has added tests or explained why testing cannot be added.
  • Included any necessary screenshots or gifs if it was a UI change.
  • Verify that UI/UX changes conform the UX guidelines for Kubeflow.

@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 assign lucferbux for approval. 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

@ppadti ppadti changed the title Add client logic for model transfer job [WIP]Add client logic for model transfer job Feb 16, 2026
@ppadti ppadti force-pushed the model-transfer-jobs branch from 7f583a6 to 3fa650a Compare February 18, 2026 12:33
Signed-off-by: ppadti <ppadti@redhat.com>
Signed-off-by: ppadti <ppadti@redhat.com>
Signed-off-by: ppadti <ppadti@redhat.com>
Signed-off-by: ppadti <ppadti@redhat.com>
Signed-off-by: ppadti <ppadti@redhat.com>
Signed-off-by: ppadti <ppadti@redhat.com>
Signed-off-by: ppadti <ppadti@redhat.com>
Signed-off-by: ppadti <ppadti@redhat.com>
@ppadti ppadti force-pushed the model-transfer-jobs branch from 3fa650a to 5f524f8 Compare February 18, 2026 15:22
Signed-off-by: ppadti <ppadti@redhat.com>
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.

1 participant

Comments