Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { // ManifestsPath contains the CustomResourceDefinition YAML files. ManifestsPath string `marker:"manifests"` // MaxDescLen specifies the maximum description length for fields in CRD's OpenAPI schema. // // 0 indicates drop the description for all fields completely. // n indicates limit the description to at most n characters and truncate the description to // closest sentence boundary if it exceeds n characters. MaxDescLen *int `marker:",optional"` // GenerateEmbeddedObjectMeta specifies if any embedded ObjectMeta in the CRD should be generated GenerateEmbeddedObjectMeta *bool `marker:",optional"` }
Generator patches existing CRDs with new schemata.
It will generate output for each "CRD Version" (API version of the CRD type itself) , e.g. apiextensions/v1) available.
func (Generator) CheckFilter ¶ added in v0.4.1
func (Generator) CheckFilter() loader.NodeFilter
func (Generator) Generate ¶
func (g Generator) Generate(ctx *genall.GenerationContext) (result error)
func (Generator) Help ¶ added in v0.2.3
func (Generator) Help() *markers.DefinitionHelp
Click to show internal directories.
Click to hide internal directories.