cdk8s-team / cdk8s

Define Kubernetes native apps and abstractions using object-oriented programming
https://cdk8s.io
Apache License 2.0
4.36k stars 294 forks source link

Add a lib folder and some extra constructs to generated project #189

Closed ankitmahapatra22 closed 4 years ago

ankitmahapatra22 commented 4 years ago

Description of the feature or enhancement:

I found the new WebService construct documented in https://github.com/awslabs/cdk8s/blob/master/docs/getting-started/typescript.md very useful and I think it should be created by default in the generated project within the lib folder. Custom constructs for databases like Redis, Postgres can be added to the lib folder.

Use Case:

Higher abstraction. Reduced copy paste efforts and more API kind experience for the developer. For bulk of the cases , default ports would be used anyways. If the user wants any more customization , they can either modify the construct or extend it to add features.

Proposed Solution:

cdk8s_enhancement

Other:

Update the documentation showcasing how to use shipped extended constructs.


This is a :rocket: Feature Request

eladb commented 4 years ago

We prefer not to bloat our project templates. The recommended way to vend abstractions in the cdk8s is to publish construct libraries such as cdk8s-debore, cdk8s-redis and more.