acceptable-mechanic-48231
05/29/2022, 6:09 PMOtherFields
field, ref. Because of that, I can’t pass it a Pulumi type for a value. This is an issue for me because my custom resource needs to support resource dependencies for a dependsOn
to work, but as far as I know Pulumi’s provider type checking requires that fields implement Pulumi types if a resource is to have dependencies. Implementing plain types when my provider’s resource has a dependsOn
results in an error like the following:
error: program failed: waiting for RPCs: rpc error: code = Unknown desc = setting args: copying input "spec": application.ArgocdAppArgs.Spec is typed as map[string]interface {} but must be a type that implements pulumi.Input or pulumi.Output for input with dependencies
Which seems to originate from here: https://github.com/pulumi/pulumi/blob/master/sdk/go/pulumi/provider.go#L564. Which seems odd that this is even a problem, because my dependency is simply a dependsOn
, not an actual field dependency.
So with all of that backstory laid out, my main questions are:
How do I pass a pulumi type to a resource that implements a plain type?
If that’s not possible, is it possible to get around the pulumi provider type checking that is requiring all fields to implement pulumi types when there are dependencies?brash-match-91530
05/30/2022, 6:16 AMacceptable-mechanic-48231
05/31/2022, 3:40 PMbroad-parrot-2692
06/05/2022, 5:43 AMraw.githubusercontent
url and have it apply that.
https://www.pulumi.com/registry/packages/kubernetes/api-docs/kustomize/directory/