kubeconform icon indicating copy to clipboard operation
kubeconform copied to clipboard

Support for "overlapping" Kinds

Open tun0 opened this issue 3 years ago • 1 comments

Say you have the combination of the following:

apiVersion: monitoring.gke.io/v1alpha1
kind: PodMonitor

and

apiVersion: monitoring.coreos.com/v1
kind: PodMonitor

Currently these are looked for at podmonitor-monitoring-v1alpha1.json and podmonitor-monitoring-v1.json respectively.

If the former were to be promoted to v1, they would become indistinguishable from each-other.

Probably the easiest way to solve this is to offer the complete apiVersion field as template variable as well? Though this would also require a respective change in openapi2jsonschema.

tun0 avatar Nov 18 '21 07:11 tun0

Sorry @tun0 a bit late on this one :) Interesting problem, and yes, I believe your suggestion would likely solve this. I'll see when I can get to this improvement :bow:

yannh avatar Dec 18 '21 23:12 yannh

Hi @tun0 , I believe this should have been resolved by https://github.com/yannh/kubeconform/pull/120 !

yannh avatar Oct 16 '22 13:10 yannh