adding unstructured example
@@ -32,6 +32,18 @@ if err != nil {
return err
}
```
+
+```go
+// You can also watch unstructured objects
+u := &unstructured.Unstructured{}
+u.SetGroupVersionKind(schema.GroupVersionKind{
+ Kind: "Pod",
+ Group: "",
+ Version: "v1",
+})
+
+err = c.Watch(&source.Kind{Type: u}, &handler.EnqueueRequestForObject{})
+```
{% endmethod %}
