Code Monkey home page Code Monkey logo

Comments (3)

pbar1 avatar pbar1 commented on September 13, 2024 1

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.

pbar1 avatar pbar1 commented on September 13, 2024

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.

Vad1mo avatar Vad1mo commented on September 13, 2024

@pbar1 thank you for your kind response, Indeed this was the issue.

This is the way to go without the vversion prefix.

cdk8s import github:grafana/[email protected]

from cdk8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.