cuddly-flower-91328
03/01/2023, 8:52 PMProperty 'getProvider' is missing in type 'OutputInstance<Deployment> & LiftedObject<Deployment, "id" | "apiVersion" | "kind" | "metadata" | "spec" | "status" | "urn">' but required typescript (2741) [308, 5]
little-cartoon-10569
03/01/2023, 8:55 PMcuddly-flower-91328
03/01/2023, 8:55 PMlittle-cartoon-10569
03/01/2023, 9:05 PMnew k8s.Provider()
or similar? You should be passing these sorts of providers in via opts.
Hopefully there'll be a way to avoid creating this Deployment inside an `apply()`; it's never good to create resources inside an apply(), and it's almost always avoidable.`--node-group-auto-discovery=asg:tag=<http://k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/${clusterName}|k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/${clusterName}>`
to
pulumi.interpolate`--node-group-auto-discovery=asg:tag=<http://k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/${args.clusterName}|k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/${args.clusterName}>`
would mean you can remove clusterName
from the apply().command?: pulumi.Input<pulumi.Input<string>[]>;
Input<Input<string[]>>
is important; presenting it in the API docs as string[]
hides important information.)cuddly-flower-91328
03/01/2023, 9:39 PMopts.provider
instead?little-cartoon-10569
03/01/2023, 9:51 PMprivate parentOpts(parent: Resource) { return { ...this.opts, parent: parent }; }
cuddly-flower-91328
03/01/2023, 9:56 PMlimited-rainbow-51650
03/03/2023, 4:54 PMproviders
(plural!) resource option. See the docs on this:
https://www.pulumi.com/docs/intro/concepts/resources/components/#inheriting-resource-providers
Within the implementation of your component, you do not have to pass the provider(s) to your child resources. You do have to set the parent
option on the child resource pointing to the component. Provider lookup always starts at the resource itself and traverses the parent link via the component all the way up to the stack resource. Each resource without an explicit parent has the stack as its implicit parent where the default provider is resolved.cuddly-flower-91328
03/03/2023, 5:14 PM