-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'30s' is not valid 'duration' #300
Comments
+1 getting the same issue:
|
Getting a similar issue with OpenTelemetryCollector sumologic-metrics is invalid: problem validating schema. Check JSON formatting: jsonschema: '/spec/targetAllocator/prometheusCR/scrapeInterval' does not validate with https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/opentelemetry.io/opentelemetrycollector_v1alpha1.json#/properties/spec/properties/targetAllocator/properties/prometheusCR/properties/scrapeInterval/format: '30s' is not valid 'duration' |
The jsonschema package which kubeconform use only validates duration against ISO8601/RFC3339, i.e. 5m would be This doesn't conform to what apiextensions expects as duration which should be parsable using |
Hi,
I'm unable to validate some Grafana Operator resources containing time intervals.
I did test some Yaml files that have been successfully applied in Kubernetes despite the problems reported by
kubeconform
.For this issue report I'm using some examples taken from the Grafana Operator website:
I did convert the following CRDs to Json using the
openapi2jsonschema.py
script:I did try to validate with the following commands:
I'm attaching the files i used for the tests:
kubeconform-duration-tests.zip
The text was updated successfully, but these errors were encountered: