Skip to content

Commit ec7a4d2

Browse files
committed
fix!: always generate classes with version suffixes, closes cdk8s-team/cdk8s#1962
Signed-off-by: Shinebayar Gansukh <3091558+shinebayar-g@users.noreply.github.com>
1 parent c357bf6 commit ec7a4d2

File tree

3 files changed

+33158
-33158
lines changed

3 files changed

+33158
-33158
lines changed

src/import/crd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class CustomResourceDefinition {
101101

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

106106
const types = new TypeGenerator({});
107107

0 commit comments

Comments
 (0)