I brought down my stack with `pulumi destroy`, and...
# general
b
I brought down my stack with
pulumi destroy
, and now i can't bring it up any more, i just get
Copy code
Error: Unexpected struct type.
any idea what the problem might be? diagnostic messages are unhelpful, it only shows points in pulumi libraries.
w
Is this Python or JavaScript?
And is that the whole error - or do you get more?
b
typescript. the whole thing:
Copy code
Diagnostics:
  pulumi:pulumi:Stack (cfm-dev):
    error: Running program '/home/chuck/le-codes/cfm-pulumi' failed with an unhandled exception:
    Error: Unexpected struct type.
        at Function.proto.google.protobuf.Value.fromJavaScript (/home/chuck/le-codes/cfm-pulumi/node_modules/google-protobuf/google/protobuf/struct_pb.js:846:13)
        at Function.proto.google.protobuf.Struct.fromJavaScript (/home/chuck/le-codes/cfm-pulumi/node_modules/google-protobuf/google/protobuf/struct_pb.js:912:51)
        at Function.proto.google.protobuf.Value.fromJavaScript (/home/chuck/le-codes/cfm-pulumi/node_modules/google-protobuf/google/protobuf/struct_pb.js:842:55)
        at Function.proto.google.protobuf.Struct.fromJavaScript (/home/chuck/le-codes/cfm-pulumi/node_modules/google-protobuf/google/protobuf/struct_pb.js:912:51)
        at Object.<anonymous> (/home/chuck/le-codes/cfm-pulumi/node_modules/@pulumi/pulumi/runtime/resource.js:409:43)
        at Generator.next (<anonymous>)
        at fulfilled (/home/chuck/le-codes/cfm-pulumi/node_modules/@pulumi/pulumi/runtime/resource.js:17:58)
w
I believe this will only happen on initial preview - if you use
--skip-preview
you ay be able to work around it.
b
oh, interesting. it seems to be caused by secretizing the kubeconfig as that other user mentioned.
and it does seem you're right that skipping the preview works