Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { // IsClientSchema controls output mode. // If IsClientSchema set to true, then spec will be generated with kustomize // validation specifics in mind, and kustomize merge annotations set. // In all other cases valid CRD would be produced and all kustomize annotations // would be omitted. IsClientSchema *bool }
Plugin transforms input files into OpenAPIv3 schema.
type PluginOption ¶
type PluginOption func(p *Plugin)
func WithClientSchema ¶
func WithClientSchema(isClientSchema bool) PluginOption
Click to show internal directories.
Click to hide internal directories.