Comments (3)
Hey, I wouldn't necessarily call this closed. Take https://doc.crds.dev/github.com/knative/operator for example - the tag one would want to import would also run into this issue without being able to remove the v
prefix - the import command shakes out to look like:
cdk8s import github:knative/[email protected]
One can't just remove the knative-v
prefix in this case.
from cdk8s.
I was also running into this and figured out it was due to the v
prefix in the tag. Looks like that breaks the URL resolution here a bit. doc.crds.dev will output tags containing the v
prefix (you and I probably copy-pasted it from the site), so it should probably be supported here π
Here's some evidence from my end:
~/code/pbcloud-next β3
βͺ yarn cdk8s import github:projectcontour/[email protected]
Error: unsupported protocol github:
at download (/Users/pierce/code/pbcloud-next/.yarn/unplugged/cdk8s-cli-npm-2.64.0-cf582c8fb4/node_modules/cdk8s-cli/lib/util.js:177:19)
at ImportCustomResourceDefinition.fromSpec (/Users/pierce/code/pbcloud-next/.yarn/unplugged/cdk8s-cli-npm-2.64.0-cf582c8fb4/node_modules/cdk8s-cli/lib/import/crd.js:108:52)
at matchImporter (/Users/pierce/code/pbcloud-next/.yarn/unplugged/cdk8s-cli-npm-2.64.0-cf582c8fb4/node_modules/cdk8s-cli/lib/import/dispatch.js:35:49)
at async importDispatch (/Users/pierce/code/pbcloud-next/.yarn/unplugged/cdk8s-cli-npm-2.64.0-cf582c8fb4/node_modules/cdk8s-cli/lib/import/dispatch.js:10:26)
at async Object.handler (/Users/pierce/code/pbcloud-next/.yarn/unplugged/cdk8s-cli-npm-2.64.0-cf582c8fb4/node_modules/cdk8s-cli/lib/cli/cmds/import.js:31:9)
~/code/pbcloud-next β3 β ERROR
ΓΈ yarn cdk8s import github:projectcontour/[email protected]
Importing resources, this may take a few moments...
projectcontour.io
projectcontour.io/contourconfiguration
projectcontour.io/contourdeployment
projectcontour.io/extensionservice
projectcontour.io/httpproxy
projectcontour.io/tlscertificatedelegation
from cdk8s.
@pbar1 thank you for your kind response, Indeed this was the issue.
This is the way to go without the v
version prefix.
cdk8s import github:grafana/[email protected]
from cdk8s.
Related Issues (20)
- Import gets stuck importing CRD file for Emissary Ingress HOT 1
- cdk8s is not quoting strings automatically HOT 1
- Contributing guide does not include formatting standards for code HOT 1
- Add support for Exbibyte HOT 1
- Support fixed point number quantities
- cdk8s import behavior changed? HOT 2
- [HIGH] Uncaught Exception in yaml
- Setting namespace for Helm construct HOT 2
- CRD version priority not respected when generating API objects
- Chart.namespace shouldn't generate namespace field for cluster scope objects HOT 3
- [Helm Synthesis] ERROR: synthesis failed, app expected to create "dist/templates" HOT 6
- Improve documentation
- [DRAFT] Namespace being generated for non-namespaced resources HOT 2
- Unable to import CRD from VictoriaMetrics operator HOT 2
- [MEDIUM] Axios Cross-Site Request Forgery Vulnerability HOT 1
- Upbound AWS provider CRDs cannot be imported
- Error rendering container command from synthHelm
- StatefulSet port name missing
- Importing a helm chart version that isn't in the form x.y.z doesn't work even though it is valid SemVer-2
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 cdk8s.