Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Helm
Commits
1a9cb935
Unverified
Commit
1a9cb935
authored
3 years ago
by
Andrew Block
Browse files
Options
Download
Email Patches
Plain Diff
Handling name of OCI file
Signed-off-by:
Andrew Block
<
andy.block@gmail.com
>
parent
23989f9e
main
dependabot/go_modules/k8s.io/apiserver-0.23.3
dependabot/go_modules/k8s.io/klog/v2-2.40.1
release-3.8
v3.8.0
v3.8.0-rc.2
v3.8.0-rc.1
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pkg/action/pull.go
+1
-0
pkg/action/pull.go
pkg/downloader/chart_downloader.go
+2
-1
pkg/downloader/chart_downloader.go
with
3 additions
and
1 deletion
+3
-1
pkg/action/pull.go
+
1
-
0
View file @
1a9cb935
...
...
@@ -87,6 +87,7 @@ func (p *Pull) Run(chartRef string) (string, error) {
getter
.
WithTLSClientConfig
(
p
.
CertFile
,
p
.
KeyFile
,
p
.
CaFile
),
getter
.
WithInsecureSkipVerifyTLS
(
p
.
InsecureSkipTLSverify
),
},
RegistryClient
:
p
.
cfg
.
RegistryClient
,
RepositoryConfig
:
p
.
Settings
.
RepositoryConfig
,
RepositoryCache
:
p
.
Settings
.
RepositoryCache
,
}
...
...
This diff is collapsed.
Click to expand it.
pkg/downloader/chart_downloader.go
+
2
-
1
View file @
1a9cb935
...
...
@@ -103,7 +103,8 @@ func (c *ChartDownloader) DownloadTo(ref, version, dest string) (string, *proven
name
:=
filepath
.
Base
(
u
.
Path
)
if
u
.
Scheme
==
registry
.
OCIScheme
{
name
=
fmt
.
Sprintf
(
"%s-%s.tgz"
,
name
,
version
)
idx
:=
strings
.
LastIndexByte
(
name
,
':'
)
name
=
fmt
.
Sprintf
(
"%s-%s.tgz"
,
name
[
:
idx
],
name
[
idx
+
1
:
])
}
destfile
:=
filepath
.
Join
(
dest
,
name
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help