IBM / KubeflowDojo

Repository to hold code, instructions, demos and pointers to presentation assets for Kubeflow Dojo
Apache License 2.0
133 stars 63 forks source link

PodDefaults feature doesn't work when using kfctl_openshift_tekton_kfserving.v1.1.0.yaml #82

Open shawnzhu opened 3 years ago

shawnzhu commented 3 years ago

Problem

When trying to create poddefault to inject credentials into notebook, I got:

error: unable to recognize "add-creds-stephen.yaml": no matches for kind "PodDefault" in version "kubeflow.org/v1alpha1"

Diagnose

I realized that the CRD poddefaults.kubeflow.org is not installed on OpenShift when using kfctl_openshift_tekton_kfserving.v1.1.0.yaml, and found this might be the problem:

https://github.com/IBM/KubeflowDojo/blob/f6ee14aeee31cad76f962ec2bed603f736a7cb76/OpenShift/manifests/kfctl_openshift_tekton_kfserving.v1.1.0.yaml#L68-L72

Which means it won't install the CRD poddefaults.kubeflow.org.