Skip to content

Commit

Permalink
bump go & helm version (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
elenz97 authored Sep 18, 2020
1 parent 03cff00 commit 875e8b7
Show file tree
Hide file tree
Showing 6 changed files with 228 additions and 127 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (c *HelmClient) AddOrUpdateChartRepo(entry repo.Entry) error {
}

c.storage.Update(&entry)
err = c.storage.WriteFile(c.Settings.RepositoryConfig, 0644)
err = c.storage.WriteFile(c.Settings.RepositoryConfig, 0o644)
if err != nil {
return err
}
Expand All @@ -189,7 +189,7 @@ func (c *HelmClient) UpdateChartRepos() error {
c.storage.Update(entry)
}

return c.storage.WriteFile(c.Settings.RepositoryConfig, 0644)
return c.storage.WriteFile(c.Settings.RepositoryConfig, 0o644)
}

// InstallOrUpgradeChart triggers the installation of the provided chart.
Expand Down
3 changes: 2 additions & 1 deletion client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package helmclient

import (
"context"

"helm.sh/helm/v3/pkg/repo"
"k8s.io/client-go/rest"
)
Expand Down Expand Up @@ -114,8 +115,8 @@ func ExampleHelmClient_DeleteChartFromCache() {
if err := helmClient.DeleteChartFromCache(&chartSpec); err != nil {
panic(err)
}

}

func ExampleHelmClient_UpdateChartRepos() {
if err := helmClient.UpdateChartRepos(); err != nil {
panic(err)
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package helmclient

var helmClient *HelmClient
var helmClient *HelmClient
15 changes: 8 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
module github.com/mittwald/go-helm-client

go 1.13
go 1.15

require (
github.com/golang/mock v1.4.3
github.com/evanphx/json-patch v4.5.0+incompatible // indirect
github.com/golang/mock v1.4.4
github.com/spf13/pflag v1.0.5
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b // indirect
helm.sh/helm/v3 v3.2.4
k8s.io/apiextensions-apiserver v0.18.2
k8s.io/apimachinery v0.18.2
k8s.io/cli-runtime v0.18.2
k8s.io/client-go v0.18.2
helm.sh/helm/v3 v3.3.2
k8s.io/apiextensions-apiserver v0.18.8
k8s.io/apimachinery v0.18.8
k8s.io/cli-runtime v0.18.8
k8s.io/client-go v0.18.8
rsc.io/letsencrypt v0.0.3 // indirect
sigs.k8s.io/yaml v1.2.0
)
Loading

0 comments on commit 875e8b7

Please sign in to comment.