kubeflow / pipelines

Machine Learning Pipelines for Kubeflow
https://www.kubeflow.org/docs/components/pipelines/
Apache License 2.0
3.62k stars 1.63k forks source link

[backend] CreatePVC's default storage class doesn't match default storage class set in the cluster #11396

Open tumido opened 18 hours ago

tumido commented 18 hours ago

Kubernetes has a concept of a default Storage Class.

One would expect that by using kfp.kubernetes.CreatePVC without specifying storage_class_name results in using this default storage class. Instead, a hardcoded standard storage class is used (no matter if such class even exist on the cluster)

Environment

Steps to reproduce

Use kfp.kubernetes.CreatePVC task without storage_class_name. A PVC with .spec.storageClassName: "standard" is created instead of one using the Storage class actually set as the default one in Kubernetes.

Expected result

Not specifying storage_class_name results in submitting the PVC without .spec.storageClassName property set and therefore result in the Kubernetes default storage class being applied.

Materials and Reference


Impacted by this bug? Give it a 👍.