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

fix(cli): impossible to import two crds with same kind #203

Merged
merged 11 commits into from
May 26, 2020

Conversation

eladb
Copy link
Contributor

@eladb eladb commented May 25, 2020

Disambiguate CRDs with similar kinds by including the group in the generated module name.

BREAKING CHANGE: the generated module names of imported CRDs now include the resource's group and not just its kind in order to ensure uniqueness. For example, when importing the Jenkins CRD, instead of 'imports/jenkins.ts, we now have imports/jenkins.io/jenkins.ts`.

  • cli: class names are now normalized to PascalCase.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@eladb eladb requested a review from iliapolo May 25, 2020 07:22
disambiguate crds with similar kinds by including the group in the generated module name.

misc:
- emit a log with the resource name.
- normalize type names before calling `emitType`
@eladb eladb force-pushed the benisrae/disambiguate-kind branch from c1031b8 to 995a2f5 Compare May 25, 2020 07:24
Elad Ben-Israel added 6 commits May 26, 2020 13:39
This is a new module that includes the source generation capabilities of jsii.
Since cdk8s version is not a stable value, the snapshots will get invalidated.
Patch the manifest and set the version to always be 999.999.999.
@eladb eladb requested a review from iliapolo May 26, 2020 14:11
@mergify
Copy link
Contributor

mergify bot commented May 26, 2020

Your pull request will be updated and merged automatically (do not update manually).

@mergify mergify bot merged commit f6248ce into master May 26, 2020
@mergify mergify bot deleted the benisrae/disambiguate-kind branch May 26, 2020 14:56
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.

2 participants