Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGenerator ¶
func NewGenerator(opts Options) generation.Generator
NewGenerator builds a new schemapatch generator.
Types ¶
type Options ¶
type Options struct { // ControllerGen is the path to a controller-gen binary to use for the generation. // When omitted, we will use the generator directly from the code. ControllerGen string // Disabled indicates whether the schemapatch generator is disabled or not. // This default to false as the schemapatch generator is enabled by default. Disabled bool // RequiredFeatureSets is used to filter the feature set manifests that // should be generated. // When omitted, any manifest with a feature set annotation will be ignored. RequiredFeatureSets []sets.String // Verify determines whether the generator should verify the content instead // of updating the generated file. Verify bool }
Options contains the configuration required for the schemapatch generator.
Click to show internal directories.
Click to hide internal directories.