This commit is contained in:
Yann Hamon 2020-11-15 20:25:16 +01:00
parent 651d3b2c50
commit cafdb09f6f

View file

@ -73,7 +73,7 @@ func New(schemaLocation string, strict bool, skipTLS bool) (Registry, error) {
schemaLocation += "/{{ .NormalizedKubernetesVersion }}-standalone{{ .StrictSuffix }}/{{ .ResourceKind }}{{ .KindSuffix }}.json"
}
// We try a fake compilation of the schemaLocation template to ensure it is valid
// try to compile the schemaLocation template to ensure it is valid
if _, err := schemaPath(schemaLocation, "Deployment", "v1", "1.18.0", true); err != nil {
return nil, fmt.Errorf("failed initialising schema location registry: %s", err)
}