diff --git a/kubeval/kubeval.go b/kubeval/kubeval.go index 8990290..10be054 100644 --- a/kubeval/kubeval.go +++ b/kubeval/kubeval.go @@ -196,8 +196,9 @@ func downloadSchema(resource *ValidationResult, schemaCache map[string]*gojsonsc errors.ErrorFormat = singleLineErrorFormat } + // TODO: this currently triggers a segfault in offline cases // We couldn't find a schema for this resource. Cache it's lack of existence, then stop - schemaCache[resource.VersionKind()] = nil + //schemaCache[resource.VersionKind()] = nil return nil, errors.ErrorOrNil() }