Skip to content

Commit ea1e6ca

Browse files
authored
Merge pull request #124 from apelisse/perf/add-crd-example
Perf/add crd example
2 parents 336d337 + e4c1689 commit ea1e6ca

File tree

7 files changed

+11451
-1846
lines changed

7 files changed

+11451
-1846
lines changed

internal/cli/main_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,13 @@ func TestFieldSet(t *testing.T) {
211211
typeName: "io.k8s.api.core.v1.Endpoints",
212212
},
213213
expectedOutputPath: testdata("endpointsset.json"),
214+
}, {
215+
options: Options{
216+
schemaPath: testdata("k8s-schema.yaml"),
217+
fieldset: testdata("prometheus-crd.yaml"),
218+
typeName: "io.k8s.apiextensions-apiserver.pkg.apis.apiextensions.v1beta1.CustomResourceDefinition",
219+
},
220+
expectedOutputPath: testdata("prometheus-crdset.json"),
214221
}}
215222

216223
for _, tt := range cases {

0 commit comments

Comments
 (0)