plain-businessperson-30883
07/10/2019, 7:53 PMerror: Running program '/Volumes/Projects/Credijusto/infra/applications/prometheus-operator' failed with an unhandled exception:
TypeError: provider.getPackage is not a function
at convertToProvidersMap (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/resource.js:198:25)
at new Resource (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/resource.js:147:19)
at new ComponentResource (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/resource.js:335:9)
at new CollectionComponentResource (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/kubernetes/yaml/yaml.js:60:9)
at new Chart (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/kubernetes/helm/v2/helm.js:62:9)
at Object.<anonymous> (/Volumes/Projects/Credijusto/infra/applications/prometheus-operator/index.ts:8:1)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Module.m._compile (/Volumes/Projects/Credijusto/infra/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Object.require.extensions.<computed> [as .ts] (/Volumes/Projects/Credijusto/infra/node_modules/ts-node/src/index.ts:442:12)
(node:99408) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I can get around this one defining the providers
in the ComponentResourceOptions param (providers: { kubernetes: myProvider }
), but then the following happens:
error: Running program '/Volumes/Projects/Credijusto/infra/applications/prometheus-operator' failed with an unhandled exception:
TypeError: provider.urn.promise is not a function
at /Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/runtime/resource.js:226:52
at Generator.next (<anonymous>)
at fulfilled (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:58)
error: Running program '/Volumes/Projects/Credijusto/infra/applications/prometheus-operator' failed with an unhandled exception:
TypeError: provider.urn.promise is not a function
at /Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/runtime/resource.js:226:52
at Generator.next (<anonymous>)
at fulfilled (/Volumes/Projects/Credijusto/infra/node_modules/@pulumi/pulumi/runtime/resource.js:17:58)
error: Running program '/Volumes/Projects/Credijusto/infra/applications/prometheus-operator' failed with an unhandled exception:
TypeError: provider.urn.promise is not a function
at /Volumes/Projects/Credijusto
.
.
.
// It happens recursively.
Any clues on this?white-balloon-205
StackReference
it in another, you get only a JSON serialized object on the other side - not a fully initialized instance of the Provider
or Resource
.plain-businessperson-30883
07/10/2019, 8:00 PMwhite-balloon-205
Provider
instance. Best is to export the kubeconfig
or similar inputs needed to create the provider and then new it up in the client stacks.plain-businessperson-30883
07/10/2019, 8:06 PM