doc/migration: Tweak client examples, add unstructured
@@ -208,18 +208,20 @@ See the examples below and the controller-runtime [client API doc][client-api-do
```Go
// Create
dep := &appsv1.Deployment{...}
-err := sdk.Create(dep)
// v0.0.1
+err := sdk.Create(dep)
+// v0.1.0
err := r.client.Create(context.TODO(), dep)
// Update
+// v0.1.0
err := sdk.Update(dep)
-// v0.0.1
+// v0.1.0
err := r.client.Update(context.TODO(), dep)
// Delete
err := sdk.Delete(dep)
-// v0.0.1
+// v0.1.0
err := r.client.Delete(context.TODO(), dep)
// List
@@ -237,6 +239,10 @@ err := sdk.Get(dep)
// v0.1.0
dep := &appsv1.Deployment{}
err = r.client.Get(context.TODO(), types.NamespacedName{Name: name, Namespace: namespace}, dep)
+// v0.1.0 with unstructured
+dep := &unstructured.Unstructured{}
+dep.SetGroupVersionKind(schema.GroupVersionKind{Group:"apps", Version: "v1", Kind:"Deployment"})
+err = r.client.Get(context.TODO(), types.NamespacedName{Name: name, Namespace: namespace}, dep)
```
Lastly copy and initialize any other fields that you may have had in your `Handler` struct into the `Reconcile<Kind>` struct:
