Skip to content

Commit

Permalink
fix!: always generate classes with version suffixes, closes cdk8s-tea…
Browse files Browse the repository at this point in the history
…m/cdk8s#1962

Signed-off-by: Shinebayar Gansukh <[email protected]>
  • Loading branch information
shinebayar-g committed Sep 14, 2024
1 parent c357bf6 commit a5cb339
Show file tree
Hide file tree
Showing 3 changed files with 33,158 additions and 33,162 deletions.
6 changes: 1 addition & 5 deletions src/import/crd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,7 @@ export class CustomResourceDefinition {
for (let i = 0; i < this.versions.length; i++) {

const version = this.versions[i];

// to preseve backwards compatiblity, only append a suffix for
// the second version onwards.
const suffix = i === 0 ? '' : toPascalCase(version.name);

const suffix = toPascalCase(version.name);
const types = new TypeGenerator({});

generateConstruct(types, {
Expand Down
Loading

0 comments on commit a5cb339

Please sign in to comment.