cdk8s-team / cdk8s-cli

Apache License 2.0
38 stars 23 forks source link

Unable to import CRD from VictoriaMetrics operator #2341

Closed nilroy closed 2 days ago

nilroy commented 10 months ago

Description of the bug:

Unable to import CRD from VictoriaMetric Operator

Reproduction Steps:

cdk8s import https://github.com/VictoriaMetrics/operator/releases/download/v0.39.1/crd.yaml --language python

Error Log:

Its full of error like below

operator.victoriametrics.com
  operator.victoriametrics.com/vmsingle
NOTE: Temp directory retained due to an error: /tmp/temp-F9LVQF
Error: jsii compilation failed with non-zero exit code: 1
  | [2023-11-06T16:24:03.363] [ERROR] jsii/compiler - Compilation errors prevented the JSII assembly from being created
  | warning JSII6: A "peerDependency" on "constructs" at "10.3.0" means you should take a "devDependency" on "constructs" at "10.3.0" (found "undefined")
  | warning JSII6: A "peerDependency" on "cdk8s" at "2.67.6" means you should take a "devDependency" on "cdk8s" at "2.67.6" (found "undefined")
  | warning JSII3: There is no "README.md" file. It is required in order to generate valid PyPI (Python) packages.
  | com.victoriametrics.operator.ts:2218:12 - error TS2300: Duplicate identifier 'sourceLabels'.
  | 2218   readonly sourceLabels?: string[];
  |                 ~~~~~~~~~~~~
  | com.victoriametrics.operator.ts:2225:12 - error TS2300: Duplicate identifier 'sourceLabels'.
  | 2225   readonly sourceLabels?: string[];
  |                 ~~~~~~~~~~~~
  | com.victoriametrics.operator.ts:2232:12 - error TS2300: Duplicate identifier 'targetLabel'.
  | 2232   readonly targetLabel?: string;
  |                 ~~~~~~~~~~~
  | com.victoriametrics.operator.ts:2239:12 - error TS2300: Duplicate identifier 'targetLabel'.
  | 2239   readonly targetLabel?: string;
  |                 ~~~~~~~~~~~
  | com.victoriametrics.operator.ts:2338:12 - error TS2300: Duplicate identifier 'sourceLabels'.
  | 2338   readonly sourceLabels?: string[];
  |                 ~~~~~~~~~~~~
  | com.victoriametrics.operator.ts:2345:12 - error TS2300: Duplicate identifier 'sourceLabels'.
  | 2345   readonly sourceLabels?: string[];
  |                 ~~~~~~~~~~~~
  | com.victoriametrics.operator.ts:2352:12 - error TS2300: Duplicate identifier 'targetLabel'.
  | 2352   readonly targetLabel?: string;
  |                 ~~~~~~~~~~~
  | com.victoriametrics.operator.ts:2359:12 - error TS2300: Duplicate identifier 'targetLabel'.
  | 2359   readonly targetLabel?: string;
  |                 ~~~~~~~~~~~
  +----------------------------------------------------------------------------------
  | Command: /usr/lib/node_modules/cdk8s-cli/node_modules/jsii-srcmak/node_modules/jsii/bin/jsii --silence-warnings reserved-word
  | Workdir: /tmp/temp-F9LVQF
  +----------------------------------------------------------------------------------

Environment:

Other:

I have also raised an issue in VictoriaMetrics here


This is :bug: Bug Report

nilroy commented 10 months ago

Found a related issue https://github.com/cdk8s-team/cdk8s-cli/issues/2722

nilroy commented 5 months ago

Dear maintainers,

Will it ever get resolved?