-
Notifications
You must be signed in to change notification settings - Fork 297
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
feat(cli): import from crds.dev #378
Conversation
cdk8s import crossplane/[email protected]
cdk8s import crossplane/[email protected]
21565e6
to
a5346fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Feels like we should add some form of unit test?
cdk8s import crossplane/[email protected]
@prasek any updates? Also, make sure to re-request a review when ready for another round. |
418fa05
to
6ce96e5
Compare
6ce96e5
to
b520124
Compare
b520124
to
b95677e
Compare
b95677e
to
5772a9a
Compare
@eladb should be good to go, thx. |
5772a9a
to
b014249
Compare
b014249
to
8292a0e
Compare
Introduce crds.dev import shortcut: `cdk8s import github:account/repo[@Version]` Example: `cdk8s import github:crossplane/[email protected]` Resolves cdk8s-team#377 *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* Signed-off-by: Phil Prasek <[email protected]>
8292a0e
to
a107a9f
Compare
@eladb test coverage is 100% should be good to go, thx. |
Your pull request will be updated and merged automatically (do not update manually). |
Follow-on to #378 Emit a single module per API group for all imports: ```sh cdk8s import github:account/repo[@Version] ``` you can use a single line import statement for multiple API types: ```ts import { CompositeResourceDefinition, Composition } from './imports/apiextensions.crossplane.io'; ``` Here's some sample output: https://github.com/prasek/crossplane-cdk/tree/cross-pkg/test/imports/provider-aws Resolves #401 *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Follow-on to cdk8s-team#378 Emit a single module per API group for all imports: ```sh cdk8s import github:account/repo[@Version] ``` you can use a single line import statement for multiple API types: ```ts import { CompositeResourceDefinition, Composition } from './imports/apiextensions.crossplane.io'; ``` Here's some sample output: https://github.com/prasek/crossplane-cdk/tree/cross-pkg/test/imports/provider-aws Resolves cdk8s-team#401 *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Introduce crds.dev import shortcut:
cdk8s import github:account/repo[@VERSION]
Example:
cdk8s import github:crossplane/[email protected]
Resolves #377
In a future PR would like to generate a single module per k8s API group with all CRDs for that API group, so you could:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license