Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot provide Output<> as ReleaseArgs.Namespace #306

Open
Tungsten78 opened this issue Jan 17, 2025 · 2 comments
Open

Cannot provide Output<> as ReleaseArgs.Namespace #306

Tungsten78 opened this issue Jan 17, 2025 · 2 comments
Assignees
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec language/dotnet

Comments

@Tungsten78
Copy link

What happened?

Expected Result: Namespace is typed as Input. It should accept Output without issue.
Actual Result: providing an Output produces an error. A hardcoded string works.

Diagnostics:
pulumi:pulumi:Stack (central-local):
error: kubernetes-cert-manager:index:CertManager resource 'manager' has a problem: setting args: copying input "helmOptions": expected destination type to implement pulumi.Input or pulumi.Output, got helmbase.ReleaseType

Related to #133 (different field).

Example

var @namespace = new Namespace("certs");

var manager = new CertManager(
  "manager",
  new()
  {
    InstallCRDs = true,

    HelmOptions = new ReleaseArgs { Namespace = @namespace.Metadata.Apply(n => n.Name) }
  }
);

Output of pulumi about

CLI
Version 3.145.0
Go Version go1.23.4
Go Compiler gc

Plugins
KIND NAME VERSION
language dotnet 3.71.1
resource keycloak 5.3.0
resource kubernetes 4.20.0
resource kubernetes-cert-manager 0.1.1

Host
OS Microsoft Windows 11 Pro
Version 10.0.22631 Build 22631
Arch x86_64

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@Tungsten78 Tungsten78 added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jan 17, 2025
@Tungsten78
Copy link
Author

Workaround is to use create a namespace with a hardcoded name and an explicit resource dependency via DependsOn.

@rshade
Copy link
Contributor

rshade commented Jan 17, 2025

@Tungsten78 thank you. I will start look at this, it's pretty interesting, as we test for that in typescript and golang: https://github.com/pulumi/pulumi-kubernetes-cert-manager/blob/master/examples/simple-cert-manager-ts/index.ts#L25
https://github.com/pulumi/pulumi-kubernetes-cert-manager/blob/master/examples/simple-cert-manager-go/main.go#L25
I will try to configure a .Net app like these, to test.

@rshade rshade added impact/usability Something that impacts users' ability to use the product easily and intuitively language/dotnet and removed needs-triage Needs attention from the triage team labels Jan 17, 2025
@rshade rshade self-assigned this Jan 17, 2025
rshade added a commit that referenced this issue Jan 17, 2025
rshade added a commit that referenced this issue Jan 17, 2025
rshade added a commit that referenced this issue Jan 21, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 22, 2025
rshade added a commit that referenced this issue Jan 23, 2025
rshade added a commit that referenced this issue Jan 23, 2025
rshade added a commit that referenced this issue Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec language/dotnet
Projects
None yet
Development

No branches or pull requests

2 participants