https://pulumi.com logo
Title
b

bored-spoon-83710

09/19/2022, 4:29 PM
Hello, in my code I have a patch resource (I’ve enabled server side apply) to patch a daemon set which is created by another resource in my code (an EKS addon). For the initial creation of my stack, if I do a
pulumi up --skip-preview
it works as intended. However, if I do a
pulumi up
I get an error during preview:
error: Preview failed: resource kube-system/ebs-csi-node was not successfully created by the Kubernetes API server : DaemonSet.apps "ebs-csi-node" is invalid: [spec.template.metadata.labels: Invalid value: map[string]string(nil): `selector` does not match template `labels`, spec.template.spec.containers: Required value]
Is it a limitation of the provider or did I miss something? Is there a workaround (other than skipping the preview)?
g

gorgeous-egg-16927

09/19/2022, 10:01 PM
Could you open an issue on the https://github.com/pulumi/pulumi-kubernetes repo? It looks like that error is coming back from the apiserver, but I can’t tell for sure what the problem is based on this message.
b

bored-spoon-83710

09/20/2022, 8:52 AM