https://pulumi.com logo
#general
Title
# general
b

bitter-dentist-28132

08/12/2019, 10:35 PM
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

white-balloon-205

08/12/2019, 10:37 PM
Is this Python or JavaScript?
And is that the whole error - or do you get more?
b

bitter-dentist-28132

08/12/2019, 10:38 PM
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

white-balloon-205

08/12/2019, 10:39 PM
I believe this will only happen on initial preview - if you use
--skip-preview
you ay be able to work around it.
b

bitter-dentist-28132

08/12/2019, 10:49 PM
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
2 Views