magnificent-address-3498
02/08/2022, 3:49 PMCalling [toJSON] on an [Output<T>] is not supported.
To get the value of an Output as a JSON value or JSON string consider either:
1: o.apply(v => v.toJSON())
2: o.apply(v => JSON.stringify(v))
See <https://pulumi.io/help/outputs> for more details.
This function may throw in a future version of @pulumi/pulumi.
little-cartoon-10569
02/08/2022, 8:14 PMstringify()
on a an object that contains outputs. You're calling apply()
on k0sconfig which is necessary, but k0sconfig itself contains outputs.all()
(are apiVersion and kind outputs?) and nesting calls to apply()
(are n.role and n.ip outputs?).orange-policeman-59119
02/09/2022, 1:28 AMk0sconfig
declaration, I see k0sctrl.apiVersion
and k0sctrl.kind
inside the body of the function - are those outputs as well?little-cartoon-10569
02/09/2022, 1:33 AMorange-policeman-59119
02/09/2022, 1:33 AMlittle-cartoon-10569
02/09/2022, 1:36 AMpulumi.all()
to have nodes
and k0sctrl.kind
as parameters. Achieves the same thing without having to await a promise inside the block.orange-policeman-59119
02/09/2022, 1:37 AMlittle-cartoon-10569
02/09/2022, 1:37 AMorange-policeman-59119
02/09/2022, 1:38 AMlittle-cartoon-10569
02/09/2022, 1:40 AM