Skip to content

crossplane-contrib/x-generation

Repository files navigation

X-GENERATION

generate compositions from crossplane provider crds

configure

The generation of crds can be configured in two places, either in the global configuration file, or in the local generation file for each composition.

global configuration

In the local configuration, the provider used and labels and tags that should be used for all generated crds can be configured in a global configuration. The default name for this file is generator-config.yaml, the filename can be overwritten using the --configFile flag.

Property Type Description
compositionIdentifier string Defines the refix used for the provider label of the composition
provider object Object used to configure the provider used for the generation
provider.baseURL string The url globaly used to retrieve the crds needed for generating the compositions, three placeholders are provided during the generation of compositions: The name of the provider, the version of the provider and the crd file name
provider.name string The name of the provider
provider.version string The version of the provider
labels object Configure the labels and label patches for each crd
labels.fromCRD array of strings For each entry e a patch that copies the value of the metadata.labels[e] field from