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

Fix repo/chart path bug causing unexpected diff #449

Merged
merged 2 commits into from
Mar 20, 2020
Merged

Conversation

jrhouston
Copy link
Contributor

Resolves #448

@ghost ghost added the size/S label Mar 20, 2020
@jrhouston jrhouston requested a review from a team March 20, 2020 16:32
@@ -890,6 +887,7 @@ func resourceHelmReleaseImportState(d *schema.ResourceData, meta interface{}) ([

d.Set("name", r.Name)
d.Set("description", r.Info.Description)
d.Set("chart", r.Chart.Metadata.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ran a lint tool on this and it mentioned the error return value isn't being checked for this one. It could be fine. But I'll post the output here just in case:

[dakini@dax terraform-provider-helm ((cbb5efb...))]$ golangci-lint run
helm/resource_release.go:888:7: Error return value of `d.Set` is not checked (errcheck)
        d.Set("name", r.Name)
             ^
helm/resource_release.go:889:7: Error return value of `d.Set` is not checked (errcheck)
        d.Set("description", r.Info.Description)
             ^
helm/resource_release.go:890:7: Error return value of `d.Set` is not checked (errcheck)
        d.Set("chart", r.Chart.Metadata.Name)
             ^
helm/resource_release.go:831:5: S1003: should use !strings.Contains(name, "/") instead (gosimple)
        if strings.Index(name, "/") == -1 && repository != "" {
           ^
helm/provider.go:462:27: S1019: should use make([]string, len(s)) instead (gosimple)
        result := make([]string, len(s), len(s))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - there is a bunch of linter problems with this repo but it shouldn't be a problem for this particular bug. We should totally clean these up though.

Copy link
Contributor

@dak1n1 dak1n1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jrhouston jrhouston merged commit 8ecdf8a into master Mar 20, 2020
@ghost
Copy link

ghost commented Apr 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm provider 1.1 constantly updating helm_release
2 participants