CRD-Generator: Overview about validation constraints / Kubernetes OpenAPI schema properties #5859
Labels
component/crd-generator
Related to the CRD generator
Milestone
Is your enhancement related to a problem? Please describe
At the moment the CRD-Generator does not allow to set all possible details to the resulting CRDs.
Describe the solution you'd like
The CRD-Generator supports all Kubernetes features to describe a CRD.
Additional context
This issue aims to provide an overview of the current state and what we plan to implement.
Introduce specific annotations for the generators #4348
(Discussion: Add support for Min, Max, Pattern and Nullable on CRD generator fields #4298)
Current state
com.fasterxml.jackson.annotation.JsonProperty
com.fasterxml.jackson.annotation.JsonPropertyDescription
description
of the fieldcom.fasterxml.jackson.annotation.JsonIgnore
io.fabric8.crd.generator.annotation.PreserveUnknownFields
x-kubernetes-preserve-unknown-fields: true
definedcom.fasterxml.jackson.annotation.JsonAnyGetter
x-kubernetes-preserve-unknown-fields: true
definedcom.fasterxml.jackson.annotation.JsonAnySetter
x-kubernetes-preserve-unknown-fields: true
definedio.fabric8.generator.annotation.Min
min
io.fabric8.generator.annotation.Max
max
io.fabric8.generator.annotation.Pattern
pattern
io.fabric8.generator.annotation.Nullable
nullable
io.fabric8.generator.annotation.Required
required
io.fabric8.generator.annotation.ValidationRule
x-kubernetes-validation-rules
)io.fabric8.crd.generator.annotation.SchemaFrom
io.fabric8.crd.generator.annotation.SchemaSwap
io.fabric8.crd.generator.annotation.Annotations
annotations
inmetadata
io.fabric8.crd.generator.annotation.Labels
labels
inmetadata
io.fabric8.crd.generator.annotation.PrinterColumn
kubectl get
commandMissing schema properties
minLength
/maxLength
minItems
/maxItems
minProperties
/maxProperties
exclusiveMinimum
/exclusiveMaximum
multipleOf
x-kubernetes-map-type
x-kubernetes-list-type
x-kubernetes-list-map-keys
x-kubernetes-embedded-resource
format
externalDocs
example
Other missing properties
conversion
categories
Not Supported / Useless
The text was updated successfully, but these errors were encountered: