Comments (4)
We could think of splitting the caching mechanism to its separate command so that one could use its output to feed CRDs to kubectl validate directly instead. IIRC having two separate commands was actually one of the initial proposals 😅
My two cents: crossplane validate
feels like a better UX to me than crossplane fetch && kubectl validate
.
from crossplane.
We should also add support for missing types of schema errors, see discussion here. To be understood how much will be left after the PR from @ezgidemirel to add x-kubernetes-validations
.
from crossplane.
I learned today that kubectl validate
is a thing. Apparently it does a lot of what our validate command does, and is designed to be used a library that other tools can depend on. We might consider using it.
from crossplane.
Thanks @negz for pointing that out, definitely interesting, I gave it a quick shot and although it looks like we could plug it pretty easily, just keeping our schema caching logic and leaving everything else to their implementation, potentially with a few added benefits such as the ability to use CRDs from a running Cluster. There is still a risk due to the overlapping dependencies, e.g. right now we would have to downgrade a few things to be able to import sigs.k8s.io/kubectl-validate
and I couldn't easily make it build. It could be worth rethinking about this once/if we move the crossplane cli to its own repo as per #4850.
We could think of splitting the caching mechanism to its separate command so that one could use its output to feed CRDs to kubectl validate
directly instead. IIRC having two separate commands was actually one of the initial proposals 😅
from crossplane.
Related Issues (20)
- Cache `*Unstructured` objects HOT 4
- Cannot resolve package dependencies: missing dependencies: [xpkg.upbound.io/upbound/provider-family-aws] HOT 2
- Support Rendering Default Values from XRD in Crossplane CLI
- Validating Claims Against XRD Schema in Crossplane CLI During Render HOT 2
- Don't report error status for deleted resources in crossplane beta trace
- Add watch support to crossplane beta trace
- Cannot change the version of a composed resource in the default `Resources` mode HOT 2
- Promote `top` crossplane CLI subcommand to GA HOT 1
- Add more validation checks in `validate` command
- `validate` should handle Kubernetes validation libraries evolving over time
- protobuf-schemas step always failing on older release branches
- Promote `init` command to GA
- Can't patch from composed resource status to the environment HOT 2
- Add a `crossplane lint xrd.yaml` command HOT 2
- Function SDK Release Cadence & Version Compatibility HOT 1
- Crossplane fails to synchronize claims with XRs HOT 11
- Document requirements to make functions with `requirements` backward compatible
- Provide a Channel of Communication to the Claim HOT 1
- Function spec.package does not use cluster local image cache HOT 8
- Issue with capitalization in printcolumn names HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crossplane.