https://pulumi.com logo
#kubernetes
Title
# kubernetes
e

enough-air-9670

09/24/2021, 12:07 PM
pulumi up
is just hanging indefinitely when trying to create
k8s.yaml.ConfigFile
for some CRD manifests in a directory.
k8s.yaml.ConfigGroup
is the same. Commenting out the block avoids the hang and works fine. They aren't mega CRDs, the biggest is ~550 lines. The code in question...
Copy code
// Traefik CRDs
const crdDirectory = path.resolve(__dirname, "./crds");
fs.readdirSync(crdDirectory).forEach((filename) => {
  new k8s.yaml.ConfigFile(
    `crd-${filename}`,
    {
      file: `${crdDirectory}/${filename}`,
    },
    {
      provider: args.provider,
      parent: this,
    }
  );
});
Versions:
Copy code
"@pulumi/kubernetes": "^3.7.2",
"@pulumi/pulumi": "^3.13.0",
I have another project doing the same thing that I haven't touched in a while, using @pulumi/pulumi v3.0.0 and @pulumi/kubernetes v3.5.0, which was working fine. Downgrading to those same versions for this still hangs unfortunately.
s

sparse-park-68967

09/24/2021, 9:26 PM
Could you dump some logs?
pulumi -d --logflow --logtostderr -v=9 up 2>&1 | tee /tmp/logs
should dump verbose logs. To the extent you are willing to share those, feel free to open an issue and either attach the logs there or if you are concerned about leaking anything, we can arrange to look at the logs privately (email/screen share)
e

enough-air-9670

09/25/2021, 11:31 AM
Thanks @sparse-park-68967. Issue created with the log output, nothing sensitive to worry about. https://github.com/pulumi/pulumi-kubernetes/issues/1731
🙌 1
9 Views