crd2pulumi
crd2pulumi copied to clipboard
cert-manager CRDs fail to convert to dotnet
Steps to reproduce:
- Download Cert-Manager crds - https://github.com/jetstack/cert-manager/releases/download/v1.1.0/cert-manager.yaml
- Run crd2pulumi (using 1.0.5)
crd2pulumi --dotnetPath ./crds ./cert-manager.yaml
Expected result:
all CRDs created as .cs
files in the ./crds
folder
Actual result errors on random files:
error: could not create file /path/to/crds/Certmanager/V1/Outputs/IssuerSpecVaultAuthAppRole.cs: open /path/to/crds/Certmanager/V1/Outputs/IssuerSpecVaultAuthAppRole.cs: too many open files
Re-Running crd2pulumi multiple times with -f
flag eventually writes all of the required files.
I'm not able to reproduce this on my machine. What does ulimit -n
show for you? Is it just a matter of hitting OS-level max file descriptors, in which case, does bumping ulimit help alleviate this problem for you?
I just got this exception, on macOS. The ulimit -n
output is 256.
After running ulimit -n 65536 200000
it worked
I am facing a similar issue on windows. the error is
could not create file crds\dotnet\Certmanager\V1Alpha2\Inputs\ClusterIssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressionsArgs.cs: open crds\dotnet\Certmanager\V1Alpha2\Inputs\ClusterIssuerSpecAcmeSolversHttp01IngressPodTemplateSpecAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressionsArgs.cs: The system cannot find the path specified.
After running crd2pulumi --dotnetPath ./crds ./cert-manager.yaml
on Windows 11, .net 6 and crd2pulumi 1.0.10.
Has anyone faced a similar issue? This is breaking my head :(