Skip to content

5. Generate Java CRD Model

Min Kim edited this page Jul 20, 2021 · 2 revisions

Model Classes from Popular CRDs

The project also provides model classes generated from some frequently used open source projects as separate maven dependencies. Please refer to the following to see their respective documentation.

It's also recommended to read this documentation to learn details about automatically generating custom Models that fits into this library. Alternatively, you can also write the models manually by implementing io.kubernetes.client.common.KubernetesObject for the singular resource types and io.kubernetes.client.common.KubernetesListObject for the list types, e.g.:

public class Foo implements io.kubernetes.client.common.KubernetesObject {
    ...
}


public class FooList implements io.kubernetes.client.common.KubernetesListObject {
    ...
}
Clone this wiki locally