-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Description
I spent a full day working on getting the watcher works for Unstructured
objects, but failed to do any progress, so I deduce the watcher does not work for Unstructured
objects.
For example,
err = controller.Watch(&source.Kind{Type: someUnstructuredResource.DeepCopyObject()}, &handler.EnqueueRequestForOwner{
IsController: true,
OwnerType: &operatorv1alpha1.SomeOwnerResource{},
})
.DeepCopyObject()
is a generated function returning a runtime.Object
. When I modify an instance of someUnstructuredResource
, the sync loop is not triggered.
To verify watcher does not work, I change someUnstructuredResource.DeepCopyObject()
to &corev1.Pod{}
and modify the pod. The sync loop is triggered.
Metadata
Metadata
Assignees
Labels
No labels