question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Problem importing knative CRDs

See original GitHub issue

Describe the bug I’m trying to import the KNative serving CRD from https://github.com/knative/serving/releases/download/v0.14.0/serving-crds.yaml

I get the following error:

TypeError: Cannot read property 'kind' of null
    at /usr/local/lib/node_modules/cdk8s-cli/lib/import/crd.js:81:34
    at Array.filter (<anonymous>)
    at Function.match (/usr/local/lib/node_modules/cdk8s-cli/lib/import/crd.js:81:14)
    at async matchImporter (/usr/local/lib/node_modules/cdk8s-cli/lib/import/dispatch.js:23:17)
    at async Object.importDispatch (/usr/local/lib/node_modules/cdk8s-cli/lib/import/dispatch.js:7:26)
    at async Object.handler (/usr/local/lib/node_modules/cdk8s-cli/bin/cmds/import.js:27:9)

There are a couple of other things worth noting. Firstly, there is no following of redirects on download of HTTP resources (so using that URL doesn’t work). Secondly, as you can see there is no clear idea of where in the imported CRD the problem lies.

To Reproduce Since redirects don’t work, I downloaded the crd like this:

wget https://github.com/knative/serving/releases/download/v0.14.0/serving-crds.yaml

Here is my cdk8s.yaml

language: typescript
app: node main.js
imports:
  - k8s@1.17.0
  - serving-crds.yaml

And then I run cdk8s import

Expected behavior It to work as the CRD example.

Additional context I’ve tried a couple of other CRDs and they work fine.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eladbcommented, Apr 30, 2020

thanks for the report. we’ll take a look

0reactions
eladbcommented, May 12, 2020

This is resolved by #132

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Problem importing knative CRDs · Issue #129 - GitHub
Describe the bug I'm trying to import the KNative serving CRD from ... .14.0/serving-crds.yaml I get the following error: TypeError: Cannot ...
Read more >
Debugging application issues - Knative
Debugging application issues¶. If you have deployed an application but are having issues, you can use the following steps to troubleshoot the application....
Read more >
Smart Card Deployment: Manually Importing User Certificates
Generating and importing user certificates as a .pfx file. In environments where the user certificates cannot be generated on the YubiKey, ...
Read more >
Scientists spent years on a plan to import this wasp to kill ...
Studies so far suggest the samurai wasp is a promising biocontrol agent. Although in laboratory tests it has parasitized some eggs laid by...
Read more >
React Native - Error on importing third party library
import SwipeCards from 'react-native-swipe-cards';. Removes the error. Has anyone had a similar problem and can help me resolve this? react- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found