We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77daec8 commit bbb0b08Copy full SHA for bbb0b08
api/krusty/no_list_items_test.go
@@ -211,4 +211,20 @@ spec:
211
ports:
212
- containerPort: 80
213
`)
214
+}
215
+
216
+// Empty list should result in no resources
217
+func TestEmptyList(t *testing.T) {
218
+ th := kusttest_test.MakeHarness(t)
219
+ th.WriteK(".", `
220
+resources:
221
+- emptyList.yaml
222
+`)
223
+ th.WriteF("emptyList.yaml", `
224
+apiVersion: v1
225
+kind: PodList
226
+items: []
227
228
+ m := th.Run(".", th.MakeDefaultOptions())
229
+ th.AssertActualEqualsExpected(m, "")
230
}
0 commit comments