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

cdk8s as a cdktf kubernetes provider #2053

Open
2 tasks done
benkeil opened this issue Jul 31, 2024 · 3 comments
Open
2 tasks done

cdk8s as a cdktf kubernetes provider #2053

benkeil opened this issue Jul 31, 2024 · 3 comments
Labels
effort/large 1+ weeks feature-request New/Enhanced functionality wanted priority/p2 Dependent on community feedback. PR's are welcome :)

Comments

@benkeil
Copy link

benkeil commented Jul 31, 2024

note from the team: Even though this is a p2, if you are interested in contributing this, please consult with the team beforehand as this is a large endeavour to take on.


Description of the feature or enhancement:

I really love the project, but very often you need data that comes from somewhere else. E.g. I want to use secrets stored in Vault. It's super comfortable in cdktf with all the providers, but a pain in cdk8s. There is the CdktfResolver but it's super slow, is annoying to use (encapsulate everything in a TerraformOutput) and he can't handle sensitive data.

On the other hand, writing custom builders and Constructs in cdktf is a pain, because of the naming of classes. Instead using a generic PodSpec there are many different implementations, e.g. DeploymentV1SpecTemplateSpec. So if you want to create your custom PodSpecBuilder you need to implement it many times (for Deployments, StatefulSet, ...).

Could cdk8s not just a much better CDKTF Kubernetes Provider? It has the nice classes of cdk8s and cdk8s-plus and the provider ecosystem of cdktf/terraform.

Use Case:

Proposed Solution:

Other:

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

@benkeil benkeil added feature-request New/Enhanced functionality wanted needs-triage Priority and effort undetermined yet labels Jul 31, 2024
@shinebayar-g
Copy link

shinebayar-g commented Aug 1, 2024

Have you looked at https://github.com/cdktf/cdktf-cdk8s? It takes cdk8s class and deploys using terraform provider.

@benkeil
Copy link
Author

benkeil commented Aug 1, 2024

Looks not maintained (maybe there is no need) but also don’t find a maven package

@iliapolo
Copy link
Member

Marking this as a p2 feature request. @benkeil another avenue to pursue perhaps is opening a discussion in https://github.com/cdktf/cdktf-provider-kubernetes to migrate the provider to use cdk8s instead of their own custom classes, possibly merging with https://github.com/cdktf/cdktf-cdk8s, as they are both maintained by terraform.

@iliapolo iliapolo added effort/large 1+ weeks priority/p2 Dependent on community feedback. PR's are welcome :) and removed needs-triage Priority and effort undetermined yet labels Sep 10, 2024
@iliapolo iliapolo changed the title Discussion: Could cdk8s just be a cdktf provider? cdk8s as a cdktf kubernetes provider Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/large 1+ weeks feature-request New/Enhanced functionality wanted priority/p2 Dependent on community feedback. PR's are welcome :)
Projects
None yet
Development

No branches or pull requests

3 participants