[BUG] Problem importing knative CRDs
See original GitHub issueDescribe 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:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thanks for the report. we’ll take a look
This is resolved by #132