This message was deleted.
# general
s
This message was deleted.
d
does it work if you pass it in using the providers list instead?
Copy code
{ providers: [clusterProvider] }
Certmanager looks to be a Provider that wraps the kubernetes provider, which would explain why you can't pass in the kubernetes provider directly
d
@dry-keyboard-94795 That seemed to work! However, now I'm running into another error (related to GKE autopilot: https://github.com/cert-manager/cert-manager/issues/3717). The fix seems to set the following setting:
Copy code
--set global.leaderElection.namespace=cert-manager cert-manager
Now I've tried this (in the documentation, it seems possible to set the "global" setting https://www.pulumi.com/registry/packages/kubernetes-cert-manager/api-docs/certmanager/#global_nodejs):
Copy code
const certManager = new certmanager.CertManager('cert-manager', {
    installCRDs: true,
    global: {
        leaderElection: {
            namespace: namespace.metadata.name // GKE: <https://github.com/cert-manager/cert-manager/issues/3717>
        }
    },
    helmOptions: {
        namespace: namespace.metadata.name
    },
},{
    providers: [clusterProvider]
});
But getting the following error: Error: failed to register new resource cert-manager [kubernetes-cert-managerindexCertManager]: 2 UNKNOWN: setting args: copying input "global": expected destination type to implement pulumi.Input or pulumi.Output, got string Any idea?
d
https://github.com/pulumi/pulumi-kubernetes-cert-manager/issues/1 Might need to make sure everything is up to date
might be better to use
helm.Release
or
helm.Chart
directly instead, though you'll lose the type checking