Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pkg/tool/helmclient/helmclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (hClient *HelmClient) upgradeCRDs(ctx context.Context, chartInstance *chart
return nil
}

// upgradeCRDV1Beta1 upgrades a CRD of the v1 API version using the provided k8s client and CRD yaml.
// upgradeCRDV1 upgrades a CRD of the v1 API version using the provided k8s client and CRD yaml.
func (hClient *HelmClient) upgradeCRDV1(ctx context.Context, cl *clientset.Clientset, rawCRD []byte) error {
var crdObj v1.CustomResourceDefinition
if err := yaml.Unmarshal(rawCRD, &crdObj); err != nil {
Expand Down Expand Up @@ -721,8 +721,8 @@ func (hClient *HelmClient) DownloadChart(repoEntry *repo.Entry, chartRef string,
}

pull := action.NewPullWithOpts(action.WithConfig(&action.Configuration{}))
pull.Password = repoEntry.Username
pull.Username = repoEntry.Password
pull.Username = repoEntry.Username
pull.Password = repoEntry.Password
pull.Version = chartVersion
pull.Settings = generalSettings
pull.DestDir = destDir
Expand All @@ -749,8 +749,8 @@ func (hClient *HelmClient) downloadOCIChart(repoEntry *repo.Entry, chartRef stri
return err
}
pull := action.NewPullWithOpts(action.WithConfig(pullConfig))
pull.Password = repoEntry.Username
pull.Username = repoEntry.Password
pull.Username = repoEntry.Username
pull.Password = repoEntry.Password
pull.Version = chartVersion
pull.Settings = generalSettings
pull.DestDir = destDir
Expand Down
Loading