fabric8io / kubernetes-model

JSON schema generator for OpenShift Origin API objects
36 stars 72 forks source link

we should auto generate the KubernetesKind class so that it always has all of the kubernetes entity types inside #77

Open jstrachan opened 8 years ago

jstrachan commented 8 years ago

I just hit this https://gist.github.com/jstrachan/b13219083279d6d2b724 as this class https://github.com/fabric8io/kubernetes-model/blob/master/kubernetes-model/src/main/java/io/fabric8/kubernetes/api/model/KubernetesKind.java#L26 was missing the particular model type I was using.

We should generate this class with all the entities from Kubernetes (ditto for OpenShift).

we could maybe refactor this old code to generate it from the generated model https://github.com/jstrachan/fabric8/blob/cdelivery/components/kubernetes-codegen/src/main/java/io/fabric8/kubernetes/codegen/GenerateKindToClassMap.java

davsclaus commented 8 years ago

Ah yeah its maintained by hand in https://github.com/fabric8io/kubernetes-model/blob/master/kubernetes-model/src/main/java/io/fabric8/kubernetes/api/model/KubernetesKind.java

iocanel commented 8 years ago

Currently KubernetesKind is @Depracated and not used by any part of Fabric8.

We should completely drop it at some point in the near future.

davsclaus commented 8 years ago

@iocanel did you manage to drop it, or what work would that take ?