File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -340,3 +340,8 @@ resetCacheFolder() {
340340 run xmllint --noout --schema fixtures/junit.xsd output.xml
341341 [ " $status " -eq 0 ]
342342}
343+
344+ @test " passes when trying to use a CRD that does not have the JSONSchema set" {
345+ run bash -c " bin/kubeconform -schema-location default -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' fixtures/httpproxy.yaml"
346+ [ " $status " -eq 0 ]
347+ }
Original file line number Diff line number Diff line change 1+ apiVersion : projectcontour.io/v1
2+ kind : HTTPProxy
3+ metadata :
4+ name : basic
5+ spec :
6+ virtualhost :
7+ fqdn : foo-basic.example.com
8+ routes :
9+ - conditions :
10+ - prefix : /
11+ services :
12+ - name : s1
13+ port : 80
You can’t perform that action at this time.
0 commit comments