Open benkeil opened 1 month ago
Have you looked at https://github.com/cdktf/cdktf-cdk8s? It takes cdk8s class and deploys using terraform provider.
Looks not maintained (maybe there is no need) but also don’t find a maven package
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.
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 incdktf
with all the providers, but a pain incdk8s
. There is theCdktfResolver
but it's super slow, is annoying to use (encapsulate everything in aTerraformOutput
) and he can't handle sensitive data.On the other hand, writing custom builders and
Constructs
incdktf
is a pain, because of the naming of classes. Instead using a genericPodSpec
there are many different implementations, e.g.DeploymentV1SpecTemplateSpec
. So if you want to create your customPodSpecBuilder
you need to implement it many times (forDeployments
,StatefulSet
, ...).Could
cdk8s
not just a much betterCDKTF Kubernetes Provider
? It has the nice classes ofcdk8s
andcdk8s-plus
and the provider ecosystem ofcdktf
/terraform
.Use Case:
Proposed Solution:
Other:
This is a :rocket: Feature Request