If a content library is detached then re-attached to the Supervisor cluster immediately, the corresponding content library resources will not show up on the Supervisor cluster afterwards.
While connected to the Supervisor cluster context, one or more of the following symptoms are observed:
kubectl get kr
kubectl get clustercontentlibrary
No resources found.
vSphere 9.0
VKS service v3.0.0 and higher
When a content library is detached from a Supervisor cluster, the corresponding Kubernetes resources will be cleaned up by the system.
However in this scenario, the content library has been re-attached to the Supervisor cluster before the Kubernetes resources have finished deleting.
This timing prevents the corresponding Kubernetes resources from being recreated after the content library re-attachment.
VM service content libraries are affected in the same manner when detached then re-attached before its corresponding cluster virtual machine image resources are cleaned up.
This will be fixed in vSphere 9.0.1.
Confirm that the corresponding Kubernetes resources were cleaned up successfully by the system then re-attach the content library to the Supervisor cluster again.
IMPORTANT: Manual deletions of the resources is not necessary because the system should quickly clean up the resources.
kubectl get clustercontentlibrary
NAME VSPHERENAME TYPE STORAGETYPE
clustercontentlibrary.imageregistry.vmware.com/cl-<contentlibraryid> Kubernetes Service Content Library Subscribed Datastore
kubectl describe clustercontentlibrary <clustercontentlibrary item> | grep -i uuid
kubectl get clustercontentlibrary,clustercontentlibraryitem | grep <contentlibraryid from Step 3 and 4>
clustercontentlibrary.imageregistry.vmware.com/cl-<contentlibraryid> Kubernetes Service Content Library Subscribed Datastore
clustercontentlibraryitem.imageregistry.vmware.com/clitem-<item id> <ovf image name> cl-<contentlibraryid> OVF
kubectl get cvmi,kr