crossplane-contrib / x-generation Goto Github PK
View Code? Open in Web Editor NEWgenerate compositions from crossplane provider crds
License: Apache License 2.0
generate compositions from crossplane provider crds
License: Apache License 2.0
Support generating manifests with EnvironmentConfig support
Add support for top level environment config, (patches, selectors, etc.) and setting ToEnvironmentFieldPath
and FromEnvironmentFieldPath
.
If I understand the functions right, it's not possible now to create patches like:
overrideFieldsInClaim:
- claimPath: spec.claimRef.namespace
managedPath: spec.providerConfigRef.name
It would be great if it would be possible.
I wan't to maintain my provider and the xresources in the same git repository and build both in my ci environment. For this, I don't set filesystem paths in the generator-config.yaml. At the moment, it's not possible to use relative paths pointing to the crd directory. They have to be absolut paths beginning with /
. It would be great if relative paths were possible.
I try to use this tool - but had problems installing it (as for now I only want to use/try it ;-) I think the behaviour is strange, and some information in the docs how to start would be really nice.
This fails:
go install github.com/crossplane-contrib/[email protected]
go: github.com/crossplane-contrib/[email protected]: module github.com/crossplane-contrib/[email protected] found, but does not contain package github.com/crossplane-contrib/x-generation
This succeeds:
go install github.com/crossplane-contrib/x-generation/[email protected]
but ...
pkg --help
Usage of pkg:
-configFile string
path where global config file can be found (default: ./generator-config.yaml) (default "./generator-config.yaml")
-inputName string
input filename to search for in current directory (default "generate.yaml")
-inputPath string
input filename to search for in current directory (default "/Users/.../go/1.19.0/pkg")
-outputPath string
path where output files are created (default: same directory as input file)
-scriptName string
script filename to execute against input file(s) (default: generate.jsonnet or specified in each input file)
-scriptPath string
path where script files are loaded from (default "/.../go/1.19.0/pkg/mod/github.com/crossplane-contrib/[email protected]/pkg/functions")
... I don't like the name of the command installed ... somehow misleading or not intuitive?
Maybe it was my fault when installing it (but that's where to docs could pick me up where i stand... Thank you!
The patches created for CRDs with a "properties" property and a default value are not handled correctly.
"properties" properties are nor patched, for default values, a patch that should not exist is created.
Try to generate a composition for kafka.aws.crossplane.io_configurations
Crossplane version:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.