Closed hosein-yousefii closed 1 year ago
this is the expected behavior.
you're "forcing" kubeconform to validate servicemonitor
and kafkaconnector
against the same schema.
to validate both resources, replace the multiple schema location with this:
kubeconform --schema-location '{{.ResourceKind}}_{{.ResourceAPIVersion}}.json'
Thanks for that, I just realized how it works.
Hello,
I faced an issue today by using multi schema-location, Kubeconform just check the code against the first schema-location.
In the first command the servicemonitor came first so it just validate it. In the second command the kafkaconnector came first so it just validate it.
so when you have multi CRDs schema you would face a problem.