mirror of https://github.com/helm/helm.git
add GetRegistryClient method
Signed-off-by: wujunwei <wjw3323@live.com>
This commit is contained in:
parent
4e447d87cd
commit
c87f846d88
|
@ -252,6 +252,7 @@ func runInstall(args []string, client *action.Install, valueOpts *values.Options
|
|||
RepositoryConfig: settings.RepositoryConfig,
|
||||
RepositoryCache: settings.RepositoryCache,
|
||||
Debug: settings.Debug,
|
||||
RegistryClient: client.GetRegistryClient(),
|
||||
}
|
||||
if err := man.Update(); err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -142,6 +142,11 @@ func (i *Install) SetRegistryClient(registryClient *registry.Client) {
|
|||
i.ChartPathOptions.registryClient = registryClient
|
||||
}
|
||||
|
||||
// GetRegistryClient get the registry client.
|
||||
func (i *Install) GetRegistryClient() *registry.Client {
|
||||
return i.ChartPathOptions.registryClient
|
||||
}
|
||||
|
||||
func (i *Install) installCRDs(crds []chart.CRD) error {
|
||||
// We do these one file at a time in the order they were read.
|
||||
totalItems := []*resource.Info{}
|
||||
|
|
Loading…
Reference in New Issue