Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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