Hi everyone. What's wrong ? I am trying to create...
# general
a
Hi everyone. What's wrong ? I am trying to create CertManager chart --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- Diagnostics: pulumipulumiStack (pulumi-kuber-dev): error: Running program '/home/nariman/Desktop/LPDF/pulumi-kuber' failed with an unhandled exception: Error: failed to register new resource cert-manager [kuberCertManager] 3 INVALID_ARGUMENT: Type 'kuber:CertManager' is not a valid type token (must have format '*:*:*') --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- --------------------------------- export class CertManager extends pulumi.CustomResource implements CertManagerOutputs { readonly meta: pulumi.Output<abstractions.HelmMeta>; constructor(name: string, props: CertManagerInputs, opts?: pulumi.CustomResourceOptions) { super('kuber:CertManager', name, props, opts); this.meta = pulumi.output({ chart: 'cert-manager', version: 'v1.7.1', repo: 'https://charts.jetstack.io', }); const chart = new k8s.helm.v3.Chart(name, { namespace: props.namespace, chart: this.meta.chart, version: this.meta.version, fetchOpts: { repo: this.meta.repo, }, values: { replicaCount: 2, installCRDs: true, webhook: { timeoutSeconds: 30, }, }, }, {parent: this} );
Full error this
pulumipulumiStack (pulumi-kuber-dev): error: Running program '/home/nariman/Desktop/LPDF/INC4/pulumi-kuber' failed with an unhandled exception: Error: failed to register new resource cert-manager [kuberCertManager] 3 INVALID_ARGUMENT: Type 'kuber:CertManager' is not a valid type token (must have format '*:*:*') at Object.registerResource (/home/nariman/Desktop/LPDF/INC4/pulumi-kuber/node_modules/@pulumi/runtime/resource.ts29527) at new Resource (/home/nariman/Desktop/LPDF/INC4/pulumi-kuber/node_modules/@pulumi/resource.ts39313) at new CustomResource (/home/nariman/Desktop/LPDF/INC4/pulumi-kuber/node_modules/@pulumi/resource.ts7729) at new CertManager (/home/nariman/Desktop/LPDF/INC4/pulumi-kuber/components/cert-manager/index.ts289) at Object.<anonymous> (/home/nariman/Desktop/LPDF/INC4/pulumi-kuber/index.ts8528) at Module._compile (nodeinternal/modules/cjs/loader1103:14) at Module.m._compile (/home/nariman/Desktop/LPDF/INC4/pulumi-kuber/node_modules/ts-node/src/index.ts43923) at Module._extensions..js (nodeinternal/modules/cjs/loader1157:10) at Object.require.extensions.<computed> [as .ts] (/home/nariman/Desktop/LPDF/INC4/pulumi-kuber/node_modules/ts-node/src/index.ts44212) at Module.load (nodeinternal/modules/cjs/loader981:32) (node:123642) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 10) (Use
node --trace-warnings ...
to show where the warning was created) (node:123642) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 11)
Sorry , I extend pulumi.CustomResource instead ComponentResource Problem solved , thanks a lot