Hello, in my code I have a patch resource (I’ve en...
# kubernetes
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:
Copy code
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)?
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.