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

best-xylophone-83824

08/19/2019, 5:07 PM
typescript drives me crazy 😕 what does it want??
Copy code
config/gke01-london.ts:6:9 - error TS2322: Type '{ machineType: string; preemptible: boolean; }' is not assignable to type '"nodeConfig"'.

6         nodeConfig: {
          ~~~~~~~~~~

  node_modules/@pulumi/gcp/container/nodePool.d.ts:312:14
    312     readonly nodeConfig?: pulumi.Input<{
                     ~~~~~~~~~~
    The expected type comes from property 'nodeConfig' which is declared here on type 'NodePoolConfigArgs'
all I wanted is to check that provided config matches NodePoolArgs. Everything in
'NodePoolConfigArgs["nodeConfig"]'
is optional, yet even
{}
cannot be assigned to it.
l

little-energy-64187

08/19/2019, 5:28 PM
think u probably missing some non optional args and need to define every property from nodeConfig that doesn't have a
?
after it's name
✔️ 1
o

orange-tailor-85423

08/19/2019, 5:59 PM
Can you share your code?
4 Views