-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Support Datasource Field for PVC Creation in KFP Python SDK #11420
Labels
Milestone
Comments
@HumairAK FYI |
leseb
changed the title
[feature] Support dataSource Field for PVC Creation in KFP Python SDK
[feature] Support DatasourceRef Field for PVC Creation in KFP Python SDK
Dec 2, 2024
leseb
changed the title
[feature] Support DatasourceRef Field for PVC Creation in KFP Python SDK
[feature] Support Datasource Field for PVC Creation in KFP Python SDK
Dec 2, 2024
thanks for raising this @leseb, it makes sense to add this as it's part of the pvc api |
@HumairAK thanks! I'm working on this. |
/assigned @leseb |
leseb
added a commit
to leseb/pipelines
that referenced
this issue
Dec 4, 2024
The kpf.kubernetes SDK now supports creating PVC from a data source. This feature would enable users to create PVCs with pre-populated data, aligning with Kubernetes capabilities for cloning or restoring PVCs from existing volumes or snapshots. This is how it can be done: ```python pvc = kfp.Kubernetes.CreatePVC( pvc_name_suffix="-foo", access_modes=["ReadWriteOnce"], size="100Gi", data_source={"api_group": "snapshot.storage.k8s.io", "kind": "VolumeSnapshot", "name": "my-snap", }, ) ``` Resolves: kubeflow#11420 Signed-off-by: Sébastien Han <seb@redhat.com>
leseb
added a commit
to leseb/pipelines
that referenced
this issue
Dec 4, 2024
The kpf.kubernetes SDK now supports creating PVC from a data source. This feature would enable users to create PVCs with pre-populated data, aligning with Kubernetes capabilities for cloning or restoring PVCs from existing volumes or snapshots. This is how it can be done: ```python pvc = kfp.Kubernetes.CreatePVC( pvc_name_suffix="-foo", access_modes=["ReadWriteOnce"], size="100Gi", data_source={"api_group": "snapshot.storage.k8s.io", "kind": "VolumeSnapshot", "name": "my-snap", }, ) ``` Resolves: kubeflow#11420 Signed-off-by: Sébastien Han <seb@redhat.com>
leseb
added a commit
to leseb/pipelines
that referenced
this issue
Dec 4, 2024
The kpf.kubernetes SDK now supports creating PVC from a data source. This feature would enable users to create PVCs with pre-populated data, aligning with Kubernetes capabilities for cloning or restoring PVCs from existing volumes or snapshots. This is how it can be done: ```python pvc = kfp.Kubernetes.CreatePVC( pvc_name_suffix="-foo", access_modes=["ReadWriteOnce"], size="100Gi", data_source={"api_group": "snapshot.storage.k8s.io", "kind": "VolumeSnapshot", "name": "my-snap", }, ) ``` Resolves: kubeflow#11420 Signed-off-by: Sébastien Han <seb@redhat.com>
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature Area
/area backend
/area sdk
What feature would you like to see?
Requesting support for the dataSource field when creating a PersistentVolumeClaim (PVC) using the KFP Python SDK DSL container_component
CreatePVC
. This feature would enable users to create PVCs with pre-populated data, aligning with Kubernetes capabilities for cloning or restoring PVCs from existing volumes or snapshots.What is the use case or pain point?
The dataSource field is essential for workflows that depend on pre-initialized volumes, such as restoring a snapshot for processing or cloning an existing volume for parallel workflows.
Is there a workaround currently?
Use a custom component task that invokes the
kubernetes
library and creates a PVC with a Datasource from a VolumeSnapshot.Proposed changes
Extend the PVC creation API in the KFP Python SDK to include the optional dataSource parameter, reflecting the Kubernetes PersistentVolumeClaimSpec.
Note:
DatasourceRef
could be considered in the future once it graduates to stable (currently beta).Love this idea? Give it a 👍.
The text was updated successfully, but these errors were encountered: