Skip to content

Commit 5e29d83

Browse files
authored
Merge pull request #674 from vadasambar/patch-1
🐛 Fix delete example not setting metadata properly for CRDs
2 parents 59dbdbb + 50d07e2 commit 5e29d83

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/client/example_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,8 @@ func ExampleClient_delete() {
187187

188188
// Using a unstructured object.
189189
u := &unstructured.Unstructured{}
190-
u.Object = map[string]interface{}{
191-
"name": "name",
192-
"namespace": "namespace",
193-
}
190+
u.SetName("name")
191+
u.SetNamespace("namespace")
194192
u.SetGroupVersionKind(schema.GroupVersionKind{
195193
Group: "apps",
196194
Kind: "Deployment",

0 commit comments

Comments
 (0)