add GetRegistryClient method

Signed-off-by: wujunwei <wjw3323@live.com>
(cherry picked from commit c87f846d88)
release-3.12 v3.12.2
wujunwei 2 years ago committed by Joe Julian
parent cfa7bc68fa
commit 1e210a2c8c
No known key found for this signature in database
GPG Key ID: FAB12BE0575D999B

@ -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…
Cancel
Save