https://pulumi.com logo
#dotnet
Title
# dotnet
g

glamorous-teacher-20849

12/02/2023, 10:27 AM
Could someone tell me what I am doing wrong here? If I set the
Namespace
to an Output<string> it fails preview with
Copy code
Grpc.Core.RpcException: Status(StatusCode="Unknown", Detail="setting args: copying input "helmOptions": expected destination type to implement pulumi.Input or pulumi.Output, got helmbase.ReleaseType")
Copy code
var certmanns = new Namespace("cert-manager", new NamespaceArgs()
{
    Metadata = new ObjectMetaArgs()
    {
        Name = "cert-manager"
    }
});

var certman = new CertManager("cert-manager", new()
{
    HelmOptions = new Pulumi.KubernetesCertManager.Inputs.ReleaseArgs
    {
        Namespace = certmanns.Metadata.Apply(x=>x.Namespace)
    }
});
A plain string works fine
e

echoing-dinner-19531

12/02/2023, 11:44 AM
That looks right, I think this is a bug in the CertManager provider. If you raise an issue at https://github.com/pulumi/pulumi-kubernetes-cert-manager/issues with that code snippet we can take a look into it.
g

glamorous-teacher-20849

12/02/2023, 11:47 AM
Ok will do. I'm having the same issue with the ingress provider as well. Thanks