Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Use New to create a full EnvSettings struct to avoid invalid memory a…
Browse files Browse the repository at this point in the history
…ddresses from uninitialised fields
  • Loading branch information
samgiles committed Jul 5, 2021
1 parent 0ea6eb0 commit 5014341
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/helm/v3/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ func newStorageDriver(client *kubernetes.Clientset, logFunc infoLogFunc, namespa
}

func getterProviders() getter.Providers {
return getter.All(&cli.EnvSettings{
RepositoryConfig: repositoryConfig,
RepositoryCache: repositoryCache,
PluginsDirectory: pluginsDir,
})
settings := cli.New()
settings.RepositoryConfig = repositoryConfig
settings.RepositoryCache = repositoryCache
settings.PluginsDirectory = pluginsDir
return getter.All(settings)
}

0 comments on commit 5014341

Please sign in to comment.