Skip to content

Commit

Permalink
Merge pull request #674 from vadasambar/patch-1
Browse files Browse the repository at this point in the history
馃悰 Fix delete example not setting metadata properly for CRDs
  • Loading branch information
k8s-ci-robot committed Nov 15, 2019
2 parents 59dbdbb + 50d07e2 commit 5e29d83
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/client/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,8 @@ func ExampleClient_delete() {

// Using a unstructured object.
u := &unstructured.Unstructured{}
u.Object = map[string]interface{}{
"name": "name",
"namespace": "namespace",
}
u.SetName("name")
u.SetNamespace("namespace")
u.SetGroupVersionKind(schema.GroupVersionKind{
Group: "apps",
Kind: "Deployment",
Expand Down

0 comments on commit 5e29d83

Please sign in to comment.