Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore unnamed properties #135

Merged
merged 5 commits into from
May 14, 2024
Merged

Ignore unnamed properties #135

merged 5 commits into from
May 14, 2024

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 rquitales and EronWright May 14, 2024 18:46
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
4 checks passed
@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