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

Converter pointing to missing Pulumi repository? #118

Closed
undervane opened this issue Feb 19, 2024 · 3 comments
Closed

Converter pointing to missing Pulumi repository? #118

undervane opened this issue Feb 19, 2024 · 3 comments
Labels
kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue

Comments

@undervane
Copy link

undervane commented Feb 19, 2024

What happened?

New installation of Pulumi, followed to onboarding guide from here. Triggered pulumi convert --from terraform --language typescript and got this error.

Example

warning: failed to install provider "helm": could not find latest version for provider helm: 404 HTTP error fetching plugin from https://api.github.com/repos/pulumi/pulumi-helm/releases/latest. If this is a private GitHub repository, try providing a token via the GITHUB_TOKEN environment variable. See: https://github.com/settings/tokens

Output of pulumi about

CLI          
Version      3.106.0
Go Version   go1.22.0
Go Compiler  gc

Host     
OS       darwin
Version  13.6.3
Arch     x86_64

Backend        
Name           pulumi.com
URL            https://app.pulumi.com
User           Unknown
Organizations  
Token type     personal

Additional context

I also had the rate limiter issue which I did overcome by using a Github token so I don't include this as part of the reproduction

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).

@undervane undervane added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Feb 19, 2024
@justinvp justinvp added resolution/duplicate This issue is a duplicate of another issue and removed needs-triage Needs attention from the triage team labels Feb 20, 2024
@justinvp
Copy link
Member

Hi @undervane. Thanks for opening the issue and sorry for the trouble. The reason you're getting this error is because there isn't a Pulumi version of the Terraform helm provider and we haven't added the capability of translating from Terraform helm resources to the Pulumi Kubernetes provider's helm resources.

You may be able to workaround this by commenting out the helm TF code, doing the conversion, and then manually updating the converted code to use the Kubernetes Helm Release resource.

We have an existing issue tracking adding support for automatically doing this conversion: #58. I'm going to close this issue as a duplicate.

@justinvp justinvp closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2024
@Frassle
Copy link
Member

Frassle commented Feb 20, 2024

You may be able to workaround this by commenting out the helm TF code, doing the conversion, and then manually updating the converted code to use the Kubernetes Helm Release resource.

Note this is only a warning not an error. The converter makes a best guess of how to translate the helm resources, you can let it write those out then just fix them to point to the real resources from the k8s provider.

@undervane
Copy link
Author

Thanks @justinvp (and also @Frassle for further clarification!), unfortunately I ended up trying to recreate the whole stack from scratch by my own, because of a never ending list of errors I was facing when using the converter. The good is I'm learning about Pulumi along the way, the bad is that it won't be as quick as just a literal transformation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec resolution/duplicate This issue is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants