MCPcopy
hub / github.com/1Panel-dev/KubePi / GetSettings

Function GetSettings

pkg/util/helm/helm.go:52–60  ·  view source on GitHub ↗
(cluster string)

Source from the content-addressed store, hash-verified

50}
51
52func GetSettings(cluster string) *cli.EnvSettings {
53 checkFiles(cluster)
54 return &cli.EnvSettings{
55 PluginsDirectory: helmpath.DataPath(cluster + "/plugins"),
56 RegistryConfig: helmpath.ConfigPath(cluster + "/registry.json"),
57 RepositoryConfig: helmpath.ConfigPath(cluster + "/repositories.yaml"),
58 RepositoryCache: helmpath.CachePath(cluster + "/repository"),
59 }
60}
61
62func checkFiles(cluster string) {
63

Callers 6

NewClientFunction · 0.85
ListChartsMethod · 0.85
ListRepoMethod · 0.85
RemoveRepoMethod · 0.85
AddRepoMethod · 0.85
UpdateRepoMethod · 0.85

Calls 1

checkFilesFunction · 0.85

Tested by

no test coverage detected