Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
fa62c476
Commit
fa62c476
authored
Apr 11, 2018
by
eyalbe4
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Basic auth credentials from repo not used in install/upgrade/fetch commands #3858
parent
f0e7da6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
chart_downloader.go
pkg/downloader/chart_downloader.go
+2
-1
No files found.
pkg/downloader/chart_downloader.go
View file @
fa62c476
...
...
@@ -167,7 +167,6 @@ func (c *ChartDownloader) ResolveChartVersionAndGetRepo(ref, version string) (*u
if
err
!=
nil
{
return
u
,
nil
,
nil
,
err
}
g
.
SetCredentials
(
c
.
getRepoCredentials
(
nil
))
if
u
.
IsAbs
()
&&
len
(
u
.
Host
)
>
0
&&
len
(
u
.
Path
)
>
0
{
// In this case, we have to find the parent repo that contains this chart
...
...
@@ -203,6 +202,7 @@ func (c *ChartDownloader) ResolveChartVersionAndGetRepo(ref, version string) (*u
repoName
:=
p
[
0
]
chartName
:=
p
[
1
]
rc
,
err
:=
pickChartRepositoryConfigByName
(
repoName
,
rf
.
Repositories
)
if
err
!=
nil
{
return
u
,
nil
,
nil
,
err
}
...
...
@@ -211,6 +211,7 @@ func (c *ChartDownloader) ResolveChartVersionAndGetRepo(ref, version string) (*u
if
err
!=
nil
{
return
u
,
nil
,
nil
,
err
}
g
.
SetCredentials
(
c
.
getRepoCredentials
(
r
))
// Next, we need to load the index, and actually look up the chart.
i
,
err
:=
repo
.
LoadIndexFile
(
c
.
HelmHome
.
CacheIndex
(
r
.
Config
.
Name
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment