You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Integrate the Kubeflow Pipelines with Kubeflow SDK #125
The Kubeflow SDK goal is to provide unified interface to interact with Kubeflow tools, and we would like to create PipelinesClient() to give users ability to create ML pipelines, as we discussed at the last Pipelines WG.
Given that migration of kfp into kubeflow SDK might take time, @mprahl and @HumairAK proposed that we install kfp in the Kubeflow SDK packages, and create create a thin wrapper on top of the KFP Client:
I believe, that might help us to drive the integration forward and achieve the long-term goal of unified Python SDK to manage AI workloads on Kubernetes.
cc @kubeflow/wg-pipeline-leads @kubeflow/kubeflow-sdk-team @franciscojavierarceo @kubeflow/kubeflow-trainer-team
Why is this needed?
Kubeflow SDK should support Kubeflow Pipelines.
Love this feature?
Give it a 👍 We prioritize the features with most 👍
Reacted by Matthew Prahl, Prateek Bala, Saad Zaher, Alex, Ravi Kumar Srivastava , Michael, hassledw, Rostand, Oswaldo Gomez, Shekhar Rajak and 2 more
Reacted by Anya Kramar, Saad Zaher, Alex, Michael and Oswaldo Gomez
I looked into it and I tried to keep it as condense as possible, let me know please if you think it would be more appropriate to move this conversation to a document instead.
Proposal is to add a PipelinesClient to the Kubeflow SDK that wraps kfp.Client, following the established pattern of ModelRegistryClient (kubeflow[hub]).
Install: pip install 'kubeflow[pipelines]'
Import: from kubeflow.pipelines import PipelinesClient, dsl, compiler, components
The pyproject extra:
pipelines = ["kfp[kubernetes]>=2.0.0"]
One SDK for the full pipeline flow: author (DSL) → compile → upload → run → monitor.
Wrapper, not fork:PipelinesClient delegates to kfp.Client under the hood. No duplicated logic, no divergence from upstream KFP.
Simpler for most users: hides ID-centric KFP APIs behind name-based methods. Pipelines, experiments, and pipeline versions are resolved by name throughout — including when creating runs and recurring runs (pipeline_name, experiment_name, auto-version). After creation, runs are tracked by run_id and recurring runs by recurring_run_id (display names aren't unique in KFP).
Consistent constructor:base_url, port, user_token, is_secure, custom_ca, namespace — aligned with ModelRegistryClient and other SDK clients. Namespace defaults to None (not "kubeflow").
Full author-to-monitor flow from one SDK: Re-export dsl, compiler, and components at module level so users can author, compile, upload, run, and monitor pipelines without mixing kfp and kubeflow imports.
Clean API surface: Drop legacy aliases (*_job), generated server APIs, and advanced auth params. Keep the wrapper focused on the common workflow; power users can use kfp.Client directly.
wait_for_run_status: Improve on KFP's wait_for_run_completion by accepting a flexible status set (matching Trainer/Optimizer's wait_for_job_status pattern).
User experience
The envisioned flow for a user working with pipelines through the Kubeflow SDK:
Install — pip install 'kubeflow[pipelines]' adds the pipelines client and the KFP authoring tools (DSL, compiler) in one step.
Author — Write pipeline components and pipelines using Python decorators (@dsl.component, @dsl.pipeline), all imported from the Kubeflow SDK.
Compile — Compile the pipeline to a portable YAML artifact, either explicitly or as part of the upload step.
Connect — Create a PipelinesClient pointing at the KFP API server with a familiar constructor (base_url, optional auth).
Upload — Push the compiled pipeline (or a Python function directly) to the server. Manage versions as needed.
Run — Trigger a one-off run or set up a recurring schedule (cron / interval). Refer to pipelines and experiments by name.
Monitor — List runs, wait for completion, inspect results, archive or clean up.
Users who need advanced KFP features (local execution, raw server API, IAP auth) can still use kfp directly alongside the wrapper.
Relevant for the main use case — pipelines run on K8s; the helpers (add_node_selector, mount_pvc, use_secret_as_env, etc.) are what users need to wire tasks to nodes, storage, and secrets.
Lightweight — kfp-kubernetes depends only on kfp and protobuf (both already installed). No new dependency tree.
kfp[notebooks] is heavy — pulls in nbclient, ipykernel, jupyter_client, and the Jupyter stack. Not needed by most users.
kfp[all] is the heaviest — adds docker + notebooks on top. Overkill as a default.
Users who need notebook components can install kfp[notebooks] on top; the wrapper works the same.
After KEP-12548 (KFP SDK unification into a single kfp 3.x package), we bump to e.g. kfp[kubernetes]>=3.0.0 and re-evaluate.
Exposed APIs
Constructor — PipelinesClient(base_url, port, user_token, is_secure, custom_ca, namespace) — Aligned with ModelRegistryClient so all Kubeflow clients share the same connection pattern.
Namespace — Optional parameter on the constructor (default None). In multi-user KFP deployments, experiments and pipelines are scoped per Kubernetes namespace; passing namespace tells the client which scope to operate in. For single-user deployments, users simply omit it. Individual methods can also override the namespace when needed. The raw KFP client defaults namespace to "kubeflow", which can be confusing for single-user deployments that may not have a kubeflow namespace at all. We default to None instead, letting the server handle it without forcing a namespace.
Health / context — Lets users verify the server is reachable and check deployment mode (e.g. multi-user) before doing work.
get_health — Pings the KFP server healthz endpoint; returns deployment info (e.g. whether multi-user is enabled). Renamed from get_kfp_healthz.
set_user_namespace — Sets the namespace scope for subsequent API calls (multi-user deployments). Same name as in KFP. We already support adding namespace at init time, there are subtle differences between
set_user_namespace vs constructor namespace (with switch namespace mid-session support being the core base for having this included).
get_user_namespace — Returns the currently configured namespace. Same name as in KFP.
Experiments (name-first, ID fallback) — Experiments group runs together; essential for organizing pipeline work in KFP.
create_experiment
list_experiments
get_experiment
archive_experiment
unarchive_experiment
delete_experiment
Pipelines (name-first, ID fallback) — Core CRUD for pipeline definitions; how users browse, inspect, and manage uploaded pipelines and their versions.
list_pipelines
get_pipeline
delete_pipeline
list_pipeline_versions
get_pipeline_version
delete_pipeline_version
Upload — How pipeline definitions get into the system; includes convenience methods that compile a Python function and upload in one step (adding short desc to highlight diffs between them).
upload_pipeline — upload from a compiled package file (YAML/JSON)
upload_pipeline_version — upload a new version of an existing pipeline from a package file
upload_pipeline_from_pipeline_func — compile a @dsl.pipeline function and upload in one step
upload_pipeline_version_from_pipeline_func — compile and upload as a new version of an existing pipeline
Runs — The core execution lifecycle: trigger a pipeline, monitor progress, and manage completed runs. Creating a run is name-first: run_pipeline accepts pipeline_name and experiment_name (resolved to IDs internally). When version_id is omitted, the latest pipeline version is used automatically; pass version_id explicitly to pin a specific version. After creation, each run is tracked by its run_id (run display names aren't unique in KFP, so get_run, wait_for_run_status, archive_run, etc. all take run_id).
run_pipeline
run_pipeline_from_func
run_pipeline_from_package
list_runs
get_run
wait_for_run_status
archive_run
unarchive_run
delete_run
terminate_run
Recurring runs — Schedules that automatically create runs on a cron or interval trigger; needed for production pipelines that run periodically. Same name-first creation as runs (pipeline_name, experiment_name, auto-version resolution). After creation, managed by recurring_run_id.
create_recurring_run
list_recurring_runs
get_recurring_run
delete_recurring_run
enable_recurring_run
disable_recurring_run
DSL re-exports (module-level, zero wrapping) — Gives users the full author → compile flow from a single SDK without needing separate kfp imports.
dsl (pipeline/component authoring)
compiler (compile to YAML)
components (load from YAML/URL)
Deferred APIs
Generated server APIs — client.pipelines.*, client.runs.*, client.experiments.*, client.recurring_runs.*, client.healthz.*, client.api_models. These come from kfp_server_api (the generated REST client). Our high-level methods already call them under the hood; exposing the raw layer would duplicate functionality.
pipeline_spec — Internal protobuf IR that the compiler produces and the server consumes. Users don't need it for the normal flow (DSL → compile → upload → run); to me it seems that exposing it would add API surface for a format most users never touch. Power users can use kfp directly.
Legacy aliases — delete_job, enable_job, disable_job. These are old names for the *_recurring_run methods; we unify under *_recurring_run only to keep the API clean and avoid confusing aliases.
Advanced auth — cookies, client_id, other_client_id, other_client_secret, proxy, ssl_ca_cert, kube_context, credentials, ui_host, verify_ssl. We support user_token, is_secure, and custom_ca to cover the common cases and stay consistent with ModelRegistryClient. The rest are for niche setups (IAP, kube config, proxy); keeping them out keeps the constructor simple. Available via kfp.Client directly.
UI / notebook helpers — URL printing and IPython display links. These are environment-specific (only useful in Jupyter/browser); not core to the pipeline lifecycle. Can be added later if there's demand.
End-to-end example
fromkubeflow.pipelinesimportPipelinesClient, dsl, compiler@dsl.componentdeftrain(epochs: int) ->str:
returnf"trained for {epochs} epochs"@dsl.pipelinedefmy_pipeline(epochs: int=10):
train(epochs=epochs)
client=PipelinesClient("https://ml-pipeline.example.com")
# Compile + upload in one stepclient.upload_pipeline_from_pipeline_func(my_pipeline, pipeline_name="my-pipeline")
# Run it — experiment and pipeline resolved by name; latest version used automatically.# Pass version_id= to pin a specific version. The run itself is tracked by its ID.run=client.run_pipeline(experiment_name="default", job_name="run-1", pipeline_name="my-pipeline")
# Monitor — uses the run ID returned aboveclient.wait_for_run_status(run.run_id)
Notable gaps
Task logs
get_run returns run metadata and per-task details (status, timing, pod name, inputs/outputs) but not task logs. The KFP Python SDK has no get_logs or get_task_logs method — logs live in the Kubernetes pod, not in the KFP API. The KFP UI fetches them by calling the K8s API behind the scenes.
Possible future addition: We could add a convenience method like get_task_logs(run_id, task_name) that:
Calls get_run to resolve the task's pod_name from task_details.
Uses the Kubernetes Python client to fetch logs from that pod.
However, this would change the auth model: the current PipelinesClient only needs credentials for the KFP API server (base_url + user_token). Fetching pod logs requires Kubernetes API access (kubeconfig or in-cluster service account), which is a different auth flow. The client would need either a K8s client instance or additional config to reach the cluster API.
I think this would be out of scope for the first iteration but worth considering as a follow-up — especially for users who want a single SDK for the full observe/debug cycle without switching to kubectl.
Run events
Every other Kubeflow SDK client that operates on Kubernetes resources exposes an events method — TrainerClient.get_job_events(name), OptimizerClient.get_job_events(name). Events provide additional clarity about state changes, scheduling failures, and errors that logs alone don't capture (e.g. pod stuck in Pending, image pull failures).
The KFP Python SDK does not have a get_run_events method — the KFP API server does not surface Kubernetes events. Implementing this would require the same Kubernetes API access as task logs (kubeconfig or in-cluster service account), with the same auth model change.
Possible future addition: A get_run_events(run_id) method that fetches Kubernetes events for the pods belonging to a run. This would align PipelinesClient with the rest of the SDK and give users a consistent debugging experience across Trainer, Optimizer, and Pipelines.
Same scoping as task logs: out of scope for v1, worth considering as a follow-up.
Potential upstream KFP improvements
Several of the gaps above (and design decisions in the wrapper) would benefit all KFP users if contributed upstream to kfp.Client directly:
Task logs — KFP already knows about pods and the UI fetches logs via K8s. A native get_task_logs(run_id, task_name) on kfp.Client would remove the need for our wrapper to manage K8s auth separately (if we decided that logs gather should be implemented at the kfp client wrapper in SDK).
Run events — Same reasoning. KFP creates the pods; a get_run_events(run_id) would align with how Trainer and Optimizer expose events.
Name-first for runs and recurring runs — KFP already has name-based lookup for pipelines (get_pipeline_id) and experiments (get_experiment(experiment_name=...)). Runs and recurring runs could get the same display_name filter support possibly.
Name-first as the default for pipelines and experiments — The internal helpers exist but the public methods are still ID-centric. Making name the primary parameter upstream would benefit all users.
wait_for_run_status with a flexible status set — KFP's wait_for_run_completion hardcodes to all terminal states (succeeded, failed, skipped, error). It can't wait for non-terminal states like Running (e.g. to start tailing logs) or for a specific terminal state only (e.g. just succeeded). A wait_for_run_status(run_id, status={...}) (matching Trainer/Optimizer's wait_for_job_status) would give callers control over which states to wait for.
Namespace default of None instead of "kubeflow" — The current default can be confusing for single-user deployments that may not have a kubeflow namespace.
If KFP adopts these, our wrapper becomes thinner — primarily constructor alignment, DSL re-exports, and the "one SDK" packaging. In the meantime, we implement name-first resolution in the wrapper as a bridge: pipelines, experiments, and pipeline versions are resolved by name everywhere (including when creating runs and recurring runs). After creation, runs are tracked by run_id and recurring runs by recurring_run_id (since display names aren't unique in KFP) this isn't ideal but I did not find a better alternative.
Migration
Existing kfp.Client users: Adoption is optional and incremental. kfp.Client stays valid. Switch host= to base_url=; use name-first params where you currently pass IDs. After creation, runs are still tracked by run_id (display names aren't unique).
When KEP-12548 lands (unified kfp 3.x): We bump to kfp[kubernetes]>=3.0.0. No wrapper code changes needed; our wrapper only calls high-level Client methods and doesn't depend on kfp_server_api or kfp_pipeline_spec import paths.
Thanks @MStokluska for the thorough proposal. This looks good to me and I'm happy for us to move forward with this approach since the design aligns with the existing SDK patterns.
+1 on the potential KFP improvements section, that would give an end user consistent experience across all Kubeflow clients. @mprahl@HumairAK@droctothorpe@zazulam what do you all think about "Potential upstream KFP improvements" section @MStokluska proposed? Do these feel like reasonable contributions to make to kfp.Client directly?
Thanks @MStokluska for the detailed write up! This looks good to me.
Regarding the potential upstream KFP improvements: task logs, run events, name-first APIs, and wait_for_run_status all seem like good contributions to kfp.Client. The one I'd defer is namespace default of None instead of "kubeflow" since changing this in kfp.Client would be a breaking change for existing users. We can consider it for kfp 3.x (KEP-12548).
This is still open.
KEP is merged here: #343
/reopen
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
We can close this since PipelinesClient() is not part of Kubeflow SDK 🎉
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Activity
andreyvelich commentedon Oct 27, 2025
/area pipelines
Anjankumar-Developer commentedon Nov 27, 2025
/assign
Shekharrajak commentedon Jan 6, 2026
Did we start the KEP for this ?
andreyvelich commentedon Jan 6, 2026
We haven't started work on this yet.
@Anjankumar-Developer Are you still interested to move this forward?
Shekharrajak commentedon Jan 6, 2026
Let me think and brainstorm on this and will come up with KEP draft.
EncHawk commentedon Jan 17, 2026
Hello @andreyvelich I would love to have a crack at this. I will post my approach as I continue to research the issue.
andreyvelich commentedon Feb 11, 2026
Thanks @EncHawk for helping with pipelines-components integration!
@kramaranya will help with migration of KFP client into Kubeflow SDK
/assign @kramaranya
MStokluska commentedon Feb 16, 2026
/assign
kramaranya commentedon Feb 16, 2026
@MStokluska will work on the integration from our side!
/unassign @Anjankumar-Developer @kramaranya
MStokluska commentedon Feb 25, 2026
Hey @andreyvelich @kramaranya @astefanutti
I looked into it and I tried to keep it as condense as possible, let me know please if you think it would be more appropriate to move this conversation to a document instead.
Proposal is to add a
PipelinesClientto the Kubeflow SDK that wrapskfp.Client, following the established pattern ofModelRegistryClient(kubeflow[hub]).Install:
pip install 'kubeflow[pipelines]'Import:
from kubeflow.pipelines import PipelinesClient, dsl, compiler, componentsThe pyproject extra:
PipelinesClientdelegates tokfp.Clientunder the hood. No duplicated logic, no divergence from upstream KFP.base_url,port,user_token), same naming conventions (get_*,list_*,create_*,delete_*).pipeline_name,experiment_name, auto-version). After creation, runs are tracked byrun_idand recurring runs byrecurring_run_id(display names aren't unique in KFP).base_url,port,user_token,is_secure,custom_ca,namespace— aligned withModelRegistryClientand other SDK clients. Namespace defaults toNone(not"kubeflow").dsl,compiler, andcomponentsat module level so users can author, compile, upload, run, and monitor pipelines without mixingkfpandkubeflowimports.*_job), generated server APIs, and advanced auth params. Keep the wrapper focused on the common workflow; power users can usekfp.Clientdirectly.wait_for_run_status: Improve on KFP'swait_for_run_completionby accepting a flexible status set (matching Trainer/Optimizer'swait_for_job_statuspattern).User experience
The envisioned flow for a user working with pipelines through the Kubeflow SDK:
pip install 'kubeflow[pipelines]'adds the pipelines client and the KFP authoring tools (DSL, compiler) in one step.@dsl.component,@dsl.pipeline), all imported from the Kubeflow SDK.PipelinesClientpointing at the KFP API server with a familiar constructor (base_url, optional auth).Users who need advanced KFP features (local execution, raw server API, IAP auth) can still use
kfpdirectly alongside the wrapper.Why the kfp[kubernetes] extra
KFP has three extras:
We bundle only
kfp[kubernetes]because:add_node_selector,mount_pvc,use_secret_as_env, etc.) are what users need to wire tasks to nodes, storage, and secrets.kfp-kubernetesdepends only onkfpandprotobuf(both already installed). No new dependency tree.kfp[notebooks]is heavy — pulls in nbclient, ipykernel, jupyter_client, and the Jupyter stack. Not needed by most users.kfp[all]is the heaviest — adds docker + notebooks on top. Overkill as a default.Users who need notebook components can install
kfp[notebooks]on top; the wrapper works the same.After KEP-12548 (KFP SDK unification into a single
kfp3.x package), we bump to e.g.kfp[kubernetes]>=3.0.0and re-evaluate.Exposed APIs
Constructor —
PipelinesClient(base_url, port, user_token, is_secure, custom_ca, namespace)— Aligned with ModelRegistryClient so all Kubeflow clients share the same connection pattern.Namespace — Optional parameter on the constructor (default
None). In multi-user KFP deployments, experiments and pipelines are scoped per Kubernetes namespace; passingnamespacetells the client which scope to operate in. For single-user deployments, users simply omit it. Individual methods can also override the namespace when needed. The raw KFP client defaults namespace to"kubeflow", which can be confusing for single-user deployments that may not have akubeflownamespace at all. We default toNoneinstead, letting the server handle it without forcing a namespace.Health / context — Lets users verify the server is reachable and check deployment mode (e.g. multi-user) before doing work.
get_kfp_healthz.set_user_namespace vs constructor namespace (with switch namespace mid-session support being the core base for having this included).
Experiments (name-first, ID fallback) — Experiments group runs together; essential for organizing pipeline work in KFP.
Pipelines (name-first, ID fallback) — Core CRUD for pipeline definitions; how users browse, inspect, and manage uploaded pipelines and their versions.
Upload — How pipeline definitions get into the system; includes convenience methods that compile a Python function and upload in one step (adding short desc to highlight diffs between them).
@dsl.pipelinefunction and upload in one stepRuns — The core execution lifecycle: trigger a pipeline, monitor progress, and manage completed runs. Creating a run is name-first:
run_pipelineacceptspipeline_nameandexperiment_name(resolved to IDs internally). Whenversion_idis omitted, the latest pipeline version is used automatically; passversion_idexplicitly to pin a specific version. After creation, each run is tracked by itsrun_id(run display names aren't unique in KFP, soget_run,wait_for_run_status,archive_run, etc. all takerun_id).Recurring runs — Schedules that automatically create runs on a cron or interval trigger; needed for production pipelines that run periodically. Same name-first creation as runs (
pipeline_name,experiment_name, auto-version resolution). After creation, managed byrecurring_run_id.DSL re-exports (module-level, zero wrapping) — Gives users the full author → compile flow from a single SDK without needing separate
kfpimports.Deferred APIs
Generated server APIs —
client.pipelines.*,client.runs.*,client.experiments.*,client.recurring_runs.*,client.healthz.*,client.api_models. These come fromkfp_server_api(the generated REST client). Our high-level methods already call them under the hood; exposing the raw layer would duplicate functionality.pipeline_spec — Internal protobuf IR that the compiler produces and the server consumes. Users don't need it for the normal flow (DSL → compile → upload → run); to me it seems that exposing it would add API surface for a format most users never touch. Power users can use
kfpdirectly.Legacy aliases —
delete_job,enable_job,disable_job. These are old names for the*_recurring_runmethods; we unify under*_recurring_runonly to keep the API clean and avoid confusing aliases.Advanced auth —
cookies,client_id,other_client_id,other_client_secret,proxy,ssl_ca_cert,kube_context,credentials,ui_host,verify_ssl. We supportuser_token,is_secure, andcustom_cato cover the common cases and stay consistent with ModelRegistryClient. The rest are for niche setups (IAP, kube config, proxy); keeping them out keeps the constructor simple. Available viakfp.Clientdirectly.UI / notebook helpers — URL printing and IPython display links. These are environment-specific (only useful in Jupyter/browser); not core to the pipeline lifecycle. Can be added later if there's demand.
End-to-end example
Notable gaps
Task logs
get_runreturns run metadata and per-task details (status, timing, pod name, inputs/outputs) but not task logs. The KFP Python SDK has noget_logsorget_task_logsmethod — logs live in the Kubernetes pod, not in the KFP API. The KFP UI fetches them by calling the K8s API behind the scenes.Possible future addition: We could add a convenience method like
get_task_logs(run_id, task_name)that:get_runto resolve the task'spod_namefromtask_details.However, this would change the auth model: the current
PipelinesClientonly needs credentials for the KFP API server (base_url+user_token). Fetching pod logs requires Kubernetes API access (kubeconfig or in-cluster service account), which is a different auth flow. The client would need either a K8s client instance or additional config to reach the cluster API.I think this would be out of scope for the first iteration but worth considering as a follow-up — especially for users who want a single SDK for the full observe/debug cycle without switching to
kubectl.Run events
Every other Kubeflow SDK client that operates on Kubernetes resources exposes an events method —
TrainerClient.get_job_events(name),OptimizerClient.get_job_events(name). Events provide additional clarity about state changes, scheduling failures, and errors that logs alone don't capture (e.g. pod stuck inPending, image pull failures).The KFP Python SDK does not have a
get_run_eventsmethod — the KFP API server does not surface Kubernetes events. Implementing this would require the same Kubernetes API access as task logs (kubeconfig or in-cluster service account), with the same auth model change.Possible future addition: A
get_run_events(run_id)method that fetches Kubernetes events for the pods belonging to a run. This would align PipelinesClient with the rest of the SDK and give users a consistent debugging experience across Trainer, Optimizer, and Pipelines.Same scoping as task logs: out of scope for v1, worth considering as a follow-up.
Potential upstream KFP improvements
Several of the gaps above (and design decisions in the wrapper) would benefit all KFP users if contributed upstream to
kfp.Clientdirectly:get_task_logs(run_id, task_name)onkfp.Clientwould remove the need for our wrapper to manage K8s auth separately (if we decided that logs gather should be implemented at the kfp client wrapper in SDK).get_run_events(run_id)would align with how Trainer and Optimizer expose events.get_pipeline_id) and experiments (get_experiment(experiment_name=...)). Runs and recurring runs could get the samedisplay_namefilter support possibly.namethe primary parameter upstream would benefit all users.wait_for_run_statuswith a flexible status set — KFP'swait_for_run_completionhardcodes to all terminal states (succeeded,failed,skipped,error). It can't wait for non-terminal states likeRunning(e.g. to start tailing logs) or for a specific terminal state only (e.g. justsucceeded). Await_for_run_status(run_id, status={...})(matching Trainer/Optimizer'swait_for_job_status) would give callers control over which states to wait for.Noneinstead of"kubeflow"— The current default can be confusing for single-user deployments that may not have akubeflownamespace.If KFP adopts these, our wrapper becomes thinner — primarily constructor alignment, DSL re-exports, and the "one SDK" packaging. In the meantime, we implement name-first resolution in the wrapper as a bridge: pipelines, experiments, and pipeline versions are resolved by name everywhere (including when creating runs and recurring runs). After creation, runs are tracked by
run_idand recurring runs byrecurring_run_id(since display names aren't unique in KFP) this isn't ideal but I did not find a better alternative.Migration
kfp.Clientstays valid. Switchhost=tobase_url=; use name-first params where you currently pass IDs. After creation, runs are still tracked byrun_id(display names aren't unique).kfp[kubernetes]>=3.0.0. No wrapper code changes needed; our wrapper only calls high-level Client methods and doesn't depend onkfp_server_apiorkfp_pipeline_specimport paths.Let me know what you think!
kramaranya commentedon Feb 25, 2026
Thanks @MStokluska for the thorough proposal. This looks good to me and I'm happy for us to move forward with this approach since the design aligns with the existing SDK patterns.
cc @andreyvelich @astefanutti @kubeflow/wg-pipeline-leads would love your thoughts on this direction
+1 on the potential KFP improvements section, that would give an end user consistent experience across all Kubeflow clients.
@mprahl @HumairAK @droctothorpe @zazulam what do you all think about "Potential upstream KFP improvements" section @MStokluska proposed? Do these feel like reasonable contributions to make to kfp.Client directly?
mprahl commentedon Feb 25, 2026
Thanks @MStokluska for the detailed write up! This looks good to me.
Regarding the potential upstream KFP improvements: task logs, run events, name-first APIs, and wait_for_run_status all seem like good contributions to kfp.Client. The one I'd defer is namespace default of None instead of "kubeflow" since changing this in kfp.Client would be a breaking change for existing users. We can consider it for kfp 3.x (KEP-12548).
MStokluska commentedon Mar 2, 2026
Thank you for feedback!
During our last Kubeflow SDK community call we have decided it will be more appropriate to create a KEP - #343
I would appreciate a review, thanks!
andreyvelich commentedon May 7, 2026
This is still open.
KEP is merged here: #343
/reopen
google-oss-prow commentedon May 7, 2026
@andreyvelich: Reopened this issue.
Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
andreyvelich commentedon Jul 29, 2026
We can close this since
PipelinesClient()is now part of Kubeflow SDK 🎉/close
google-oss-prow commentedon Jul 29, 2026
@andreyvelich: Closing this issue.
Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.