Skip to content

Commit

Permalink
update a comment in tests
Browse files Browse the repository at this point in the history
explain why k8s objects created with unstructured.Unstructured

related to operator-framework#101
  • Loading branch information
everettraven committed Apr 6, 2022
1 parent 93334f6 commit 24409f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prune/prune_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ func createTestPods(client client.Client) (err error) {
ns := "default"
appLabel := "churro"

// Due to some weirdness in the way the fake client is set up we need to create our
// Kubernetes objects via the unstructured.Unstructured method
p1 := &unstructured.Unstructured{}
p1.SetUnstructuredContent(map[string]interface{}{
"apiVersion": "core/v1",
Expand Down

0 comments on commit 24409f4

Please sign in to comment.