Skip to content

Ignore unnamed properties#135

Merged
blampe merged 5 commits intomasterfrom
blampe/vm
May 14, 2024
Merged

Ignore unnamed properties#135
blampe merged 5 commits intomasterfrom
blampe/vm

Conversation

@blampe
Copy link
Contributor

@blampe blampe commented May 14, 2024

The VictoriaMetrics CRD includes a property like this:

properties:
  '-':
    type: string

which breaks codegen because the property name camel cases to "", and as a result we generates a bunch of unnamed functions.

This PR modifies our logic to ignore unnamed properties like this.

We also bump pu/pu and apimachinery for good measure.

Fixes #133.

@blampe blampe requested review from EronWright and rquitales May 14, 2024 18:46
@codecov
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.37%. Comparing base (93444b9) to head (7b48758).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #135      +/-   ##
==========================================
- Coverage   79.56%   79.37%   -0.19%     
==========================================
  Files          16       17       +1     
  Lines         729      737       +8     
==========================================
+ Hits          580      585       +5     
- Misses         84       88       +4     
+ Partials       65       64       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@blampe blampe merged commit 6d25f60 into master May 14, 2024
@blampe blampe deleted the blampe/vm branch May 14, 2024 22:49
@pulumi-bot
Copy link

This PR has been shipped in release v1.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid typescript code for victoriametrics operator CRDs

3 participants