mirror of
https://github.com/yannh/kubeconform.git
synced 2026-04-21 02:59:52 +00:00
Use a custom, more up-to-date fork of kubernetes-json-schema by default
This commit is contained in:
parent
3ce3992c23
commit
61e708277d
2 changed files with 5 additions and 4 deletions
|
|
@ -53,9 +53,10 @@ type Opts struct {
|
|||
|
||||
// New returns a new Validator
|
||||
func New(schemaLocations []string, opts Opts) (Validator, error) {
|
||||
// Default to kubernetesjsonschema.dev
|
||||
// Default to our kubernetes-json-schema fork
|
||||
// raw.githubusercontent.com is frontend by Fastly and very fast
|
||||
if schemaLocations == nil || len(schemaLocations) == 0 {
|
||||
schemaLocations = []string{"https://kubernetesjsonschema.dev"}
|
||||
schemaLocations = []string{"https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/{{ .NormalizedKubernetesVersion }}-standalone{{ .StrictSuffix }}/{{ .ResourceKind }}{{ .KindSuffix }}.json"}
|
||||
}
|
||||
|
||||
registries := []registry.Registry{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue