kubeflow / pipelines

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

[sdk] kfp-kubernetes ImagePullSecrets not working #11218

Open ksgnextuple opened 2 months ago

ksgnextuple commented 2 months ago

Environment

Getting the below error when using the set_image_pull_secrets function:

F0917 12:02:28.761279      17 main.go:76] KFP driver: failed to unmarshal Kubernetes config, error: unknown field "imagePullSecret" in kfp_kubernetes.KubernetesExecutorConfig

Impacted by this bug? Give it a 👍.

Naegionn commented 1 month ago

Hi, I am facing the same issue. I found that suprisingly kfp-kubernetes did not support ImagePullSecrets initially.

My guess here is that older version of kfp-server-api do not support it as well but i am not aware of which version is required.

On my kubeflow installation with kf 1.8 and kfp-api 2.0 i get this error. On another installation kf=1.9 kfp-api=2.2 it is working.

I would think that ImagePullSecrets to allow pulling from private registries is one of the most common features.

AxoyTO commented 1 month ago

I have it deployed with versions: KFP Runtime 2.5.0, KFP SDK 2.7.0 and all other dependencies versions are the same. I don't face this issue.

rimolive commented 1 month ago

ImagePullPolicy was added beginning KFP 2.0.5. See https://github.com/kubeflow/pipelines/pull/10417 and https://github.com/kubeflow/pipelines/pull/10416