Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
1ce594f4
Unverified
Commit
1ce594f4
authored
6 years ago
by
Matt Butcher
Committed by
GitHub
6 years ago
Browse files
Options
Download
Patches
Plain Diff
ref(helm): rename fetch to pull (#4714)
Signed-off-by:
Matt Butcher
<
matt.butcher@microsoft.com
>
parent
9fda1876
main
Release
add-codeql
dependabot/go_modules/github.com/docker/distribution-2.8.2incompatible
dependabot/go_modules/github.com/lib/pq-1.10.9
dependabot/go_modules/github.com/rubenv/sql-migrate-1.4.0
dependabot/go_modules/golang.org/x/crypto-0.9.0
dependabot/go_modules/golang.org/x/term-0.8.0
dependabot/go_modules/k8s.io/klog/v2-2.100.1
release-3.0
release-3.1
release-3.10
release-3.11
release-3.12
release-3.2
release-3.3
release-3.4
release-3.5
release-3.6
release-3.6.1
release-3.6.2
release-3.7
release-3.8
release-3.9
release-v3.0.0-beta.4
v3.12.0
v3.12.0-rc.1
v3.12.0-dev.1
v3.11.3
v3.11.2
v3.11.1
v3.11.0
v3.11.0-rc.2
v3.11.0-rc.1
v3.10.3
v3.10.2
v3.10.1
v3.10.0
v3.10.0-rc.1
v3.9.4
v3.9.3
v3.9.2
v3.9.1
v3.9.0
v3.9.0-rc.1
v3.8.2
v3.8.1
v3.8.0
v3.8.0-rc.2
v3.8.0-rc.1
v3.7.2
v3.7.1
v3.7.0
v3.7.0-rc.3
v3.7.0-rc.2
v3.7.0-rc.1
v3.6.3
v3.6.2
v3.6.1
v3.6.0
v3.6.0-rc.1
v3.5.4
v3.5.3
v3.5.2
v3.5.1
v3.5.0
v3.5.0-rc.2
v3.5.0-rc.1
v3.4.2
v3.4.1
v3.4.0
v3.4.0-rc.1
v3.3.4
v3.3.3
v3.3.2
v3.3.1
v3.3.0
v3.3.0-rc.2
v3.3.0-rc.1
v3.2.4
v3.2.3
v3.2.2
v3.2.1
v3.2.0
v3.2.0-rc.1
v3.1.3
v3.1.2
v3.1.1
v3.1.0
v3.1.0-rc.3
v3.1.0-rc.2
v3.1.0-rc.1
v3.0.3
v3.0.2
v3.0.1
v3.0.0
v3.0.0-rc.4
v3.0.0-rc.3
v3.0.0-rc.2
v3.0.0-rc.1
v3.0.0-beta.5
v3.0.0-beta.4
v3.0.0-beta.3
v3.0.0-beta.2
v3.0.0-beta.1
v3.0.0-alpha.2
v3.0.0-alpha.1
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
cmd/helm/pull.go
+10
-9
cmd/helm/pull.go
cmd/helm/pull_test.go
+1
-1
cmd/helm/pull_test.go
cmd/helm/root.go
+1
-1
cmd/helm/root.go
docs/chart_repository_faq.md
+2
-2
docs/chart_repository_faq.md
docs/charts.md
+1
-1
docs/charts.md
docs/plugins.md
+1
-1
docs/plugins.md
with
16 additions
and
15 deletions
+16
-15
cmd/helm/
fetch
.go
→
cmd/helm/
pull
.go
+
10
−
9
View file @
1ce594f4
...
...
@@ -33,7 +33,7 @@ import (
"k8s.io/helm/pkg/repo"
)
const
fetch
Desc
=
`
const
pull
Desc
=
`
Retrieve a package from a package repository, and download it locally.
This is useful for fetching packages to inspect, modify, or repackage. It can
...
...
@@ -48,7 +48,7 @@ file, and MUST pass the verification process. Failure in any part of this will
result in an error, and the chart will not be saved locally.
`
type
fetch
Options
struct
{
type
pull
Options
struct
{
destdir
string
// --destination
devel
bool
// --devel
untar
bool
// --untar
...
...
@@ -60,14 +60,15 @@ type fetchOptions struct {
chartPathOptions
}
func
new
Fetch
Cmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
o
:=
&
fetch
Options
{}
func
new
Pull
Cmd
(
out
io
.
Writer
)
*
cobra
.
Command
{
o
:=
&
pull
Options
{}
cmd
:=
&
cobra
.
Command
{
Use
:
"fetch [chart URL | repo/chartname] [...]"
,
Short
:
"download a chart from a repository and (optionally) unpack it in local directory"
,
Long
:
fetchDesc
,
Args
:
require
.
MinimumNArgs
(
1
),
Use
:
"pull [chart URL | repo/chartname] [...]"
,
Short
:
"download a chart from a repository and (optionally) unpack it in local directory"
,
Aliases
:
[]
string
{
"fetch"
},
Long
:
pullDesc
,
Args
:
require
.
MinimumNArgs
(
1
),
RunE
:
func
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
o
.
version
==
""
&&
o
.
devel
{
debug
(
"setting version to >0.0.0-0"
)
...
...
@@ -96,7 +97,7 @@ func newFetchCmd(out io.Writer) *cobra.Command {
return
cmd
}
func
(
o
*
fetch
Options
)
run
(
out
io
.
Writer
)
error
{
func
(
o
*
pull
Options
)
run
(
out
io
.
Writer
)
error
{
c
:=
downloader
.
ChartDownloader
{
HelmHome
:
settings
.
Home
,
Out
:
out
,
...
...
This diff is collapsed.
Click to expand it.
cmd/helm/
fetch
_test.go
→
cmd/helm/
pull
_test.go
+
1
−
1
View file @
1ce594f4
...
...
@@ -27,7 +27,7 @@ import (
"k8s.io/helm/pkg/repo/repotest"
)
func
Test
Fetch
Cmd
(
t
*
testing
.
T
)
{
func
Test
Pull
Cmd
(
t
*
testing
.
T
)
{
defer
resetEnv
()()
hh
:=
testHelmHome
(
t
)
...
...
This diff is collapsed.
Click to expand it.
cmd/helm/root.go
+
1
−
1
View file @
1ce594f4
...
...
@@ -62,7 +62,7 @@ func newRootCmd(c helm.Interface, out io.Writer, args []string) *cobra.Command {
// chart commands
newCreateCmd
(
out
),
newDependencyCmd
(
out
),
new
Fetch
Cmd
(
out
),
new
Pull
Cmd
(
out
),
newInspectCmd
(
out
),
newLintCmd
(
out
),
newPackageCmd
(
out
),
...
...
This diff is collapsed.
Click to expand it.
docs/chart_repository_faq.md
+
2
−
2
View file @
1ce594f4
...
...
@@ -6,9 +6,9 @@ This section tracks some of the more frequently encountered issues with using ch
information,
[
file an issue
](
https://github.com/kubernetes/helm/issues
)
or
send us a pull request.
##
Fetch
ing
##
Pull
ing
**Q: Why do I get a `unsupported protocol scheme ""` error when trying to
fetch
a chart from my custom repo?**
**Q: Why do I get a `unsupported protocol scheme ""` error when trying to
pull
a chart from my custom repo?**
A: (Helm < 2.5.0) This is likely caused by you creating your chart repo index without specifying the
`--url`
flag.
Try recreating your
`index.yaml`
file with a command like
`helm repo index --url http://my-repo/charts .`
,
...
...
This diff is collapsed.
Click to expand it.
docs/charts.md
+
1
−
1
View file @
1ce594f4
...
...
@@ -449,7 +449,7 @@ on Apache and MySQL by including those charts inside of its `charts/`
directory.
**TIP:**
_To drop a dependency into your
`charts/`
directory, use the
`helm
fetch
`
command_
`helm
pull
`
command_
### Operational aspects of using dependencies
...
...
This diff is collapsed.
Click to expand it.
docs/plugins.md
+
1
−
1
View file @
1ce594f4
...
...
@@ -112,7 +112,7 @@ There are some strategies for working with plugin commands:
but will not handle
`helm myplugin --help`
.
## Downloader Plugins
By default, Helm is able to
fetch
Charts using HTTP/S. As of Helm 2.4.0, plugins
By default, Helm is able to
pull
Charts using HTTP/S. As of Helm 2.4.0, plugins
can have a special capability to download Charts from arbitrary sources.
Plugins shall declare this special capability in the
`plugin.yaml`
file (top level):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets