crd2pulumi icon indicating copy to clipboard operation
crd2pulumi copied to clipboard

cert-manager CRDs fail to convert to dotnet

Open JasonWhall opened this issue 4 years ago • 4 comments

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.

JasonWhall avatar Nov 26 '20 13:11 JasonWhall

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?

leezen avatar Dec 03 '20 00:12 leezen

I just got this exception, on macOS. The ulimit -n output is 256.

alexeyzimarev avatar Jul 02 '21 08:07 alexeyzimarev

After running ulimit -n 65536 200000 it worked

alexeyzimarev avatar Jul 02 '21 08:07 alexeyzimarev

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 :(

srivathsah avatar Dec 25 '21 05:12 srivathsah