crossplane-contrib / crossplane-migrator Goto Github PK
View Code? Open in Web Editor NEWMigrates Crossplane YAML manifests to new formats
License: Apache License 2.0
Migrates Crossplane YAML manifests to new formats
License: Apache License 2.0
pld p&t:
transforms:
- math:
multiply: 1024
type: math
crossplane-migrator new-pipeline-composition -i database/sqlinstance/composition-mariadb.yaml -o xx.yaml
after migration:
transforms:
- math:
multiply: 1024
type: math
error:
crossplane: error: cannot render composite resource: pipeline step "patch-and-transform" returned a fatal result: invalid Function input: resources[0].patches[3].transforms[0].math.type: Required value: math transform type is required
transforms:
- math:
multiply: 1024
type: Multiply
type: math
With PR crossplane/crossplane#5275, the functionality of this binary will be merged into the Crossplane CLI.
With ControllerConfig, if a user specified a spec.serviceAccountName
Crossplane would create one for you. With the DeploymentRuntimeConfig, this is no longer the case.
We should think of options of handling this to make it easy for users to migrate:
ServiceAccount
object with a namespaceCurrently the new-pipeline-composition
command takes the whole spec.environment
and moves it down to spec.pipeline[0].environment
, but that's not correct, only spec.environment.patches
should be pushed down at the Function level, while the rest should be kept at the Composition level.
This is most probably due to the drift between the vendored Input
and the actual Resources
expected by function-patch-and-transform
.
crossplane-contrib/function-patch-and-transform#19 might require patch types to be present. Crossplane-migrator should add a patch type if it can determine it.
I believe the only patch type that isn't required is FromCompositeFieldPath
, so this might be a small effort.
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.