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
b6411be7
Commit
b6411be7
authored
8 years ago
by
Michelle Noorali
Browse files
Options
Download
Patches
Plain Diff
feat(helm): add helm repo list command
parent
0ebeecbd
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
dev-v2
feat-v3/event-emitter-lua
kube-update-test
release-2.0
release-2.1
release-2.10
release-2.11
release-2.12
release-2.13
release-2.14
release-2.15
release-2.16
release-2.17
release-2.2
release-2.3
release-2.4
release-2.5
release-2.6
release-2.7
release-2.8
release-2.9
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.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2.3.0
v2.2.3
v2.2.2
v2.2.1
v2.2.0
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.0.2
v2.0.1
v2.0.0
v2.0.0-rc.2
v2.0.0-rc.1
v2.0.0-beta.2
v2.0.0-beta.1
v2.0.0-alpha.5
v2.0.0-alpha.4
v2.0.0-alpha.3
v2.0.0-alpha.2
v2.0.0-alpha.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmd/helm/repo.go
+27
-0
cmd/helm/repo.go
glide.lock
+9
-2
glide.lock
glide.yaml
+4
-3
glide.yaml
with
40 additions
and
5 deletions
+40
-5
cmd/helm/repo.go
+
27
−
0
View file @
b6411be7
...
...
@@ -5,12 +5,14 @@ import (
"os"
"github.com/deis/tiller/pkg/repo"
"github.com/gosuri/uitable"
"github.com/spf13/cobra"
"gopkg.in/yaml.v2"
)
func
init
()
{
repoCmd
.
AddCommand
(
repoAddCmd
)
repoCmd
.
AddCommand
(
repoListCmd
)
RootCommand
.
AddCommand
(
repoCmd
)
}
...
...
@@ -25,6 +27,12 @@ var repoAddCmd = &cobra.Command{
RunE
:
runRepoAdd
,
}
var
repoListCmd
=
&
cobra
.
Command
{
Use
:
"list [flags]"
,
Short
:
"list chart repositories"
,
RunE
:
runRepoList
,
}
func
runRepoAdd
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
if
len
(
args
)
!=
2
{
return
fmt
.
Errorf
(
"This command needs two argument, a name for the chart repository and the url of the chart repository"
)
...
...
@@ -38,6 +46,25 @@ func runRepoAdd(cmd *cobra.Command, args []string) error {
return
nil
}
func
runRepoList
(
cmd
*
cobra
.
Command
,
args
[]
string
)
error
{
f
,
err
:=
repo
.
LoadRepositoriesFile
(
repositoriesFile
())
if
err
!=
nil
{
return
err
}
if
len
(
f
.
Repositories
)
==
0
{
fmt
.
Println
(
"No repositories to show"
)
return
nil
}
table
:=
uitable
.
New
()
table
.
MaxColWidth
=
50
table
.
AddRow
(
"NAME"
,
"URL"
)
for
k
,
v
:=
range
f
.
Repositories
{
table
.
AddRow
(
k
,
v
)
}
fmt
.
Println
(
table
)
return
nil
}
func
insertRepoLine
(
name
,
url
string
)
error
{
err
:=
checkUniqueName
(
name
)
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
glide.lock
+
9
−
2
View file @
b6411be7
hash:
78e69db1e2c08b4c326c61c47d602ccb5d0d4a782e5047a460e984d0c22f43a3
updated: 2016-04-27T1
3:31:53.384640094
-0
7
:00
hash:
998d87445fec0bd715fa5ccbcc227cb4997e56ceff58dc8eb53ea2e0cc84abfd
updated: 2016-04-27T1
6:11:47.531200165
-0
6
:00
imports:
- name: bitbucket.org/ww/goautoneg
version: 75cd24fc2f2c
...
...
@@ -121,6 +121,11 @@ imports:
- version
- name: github.com/google/gofuzz
version: bbcb9da2d746f8bdbd6a936686a0a6067ada0ec5
- name: github.com/gosuri/uitable
version: 36ee7e946282a3fb1cfecd476ddc9b35d8847e42
subpackages:
- util/strutil
- util/wordwrap
- name: github.com/imdario/mergo
version: 6633656539c1639d9d78127b7d47c622b5d7b6dc
- name: github.com/inconshreveable/mousetrap
...
...
@@ -131,6 +136,8 @@ imports:
version: 808ed7761c233af2de3f9729a041d68c62527f3a
- name: github.com/Masterminds/sprig
version: e6494bc7e81206ba6db404d2fd96500ffc453407
- name: github.com/mattn/go-runewidth
version: d6bea18f789704b5f83375793155289da36a3c7f
- name: github.com/matttproud/golang_protobuf_extensions
version: fc2b8d3a73c4867e51861bbdd5ae3c1f0869dd6a
subpackages:
...
...
This diff is collapsed.
Click to expand it.
glide.yaml
+
4
−
3
View file @
b6411be7
...
...
@@ -26,6 +26,7 @@ import:
-
package
:
k8s.io/kubernetes
version
:
^1.2
subpackages
:
-
pkg/client/unversioned/clientcmd
-
pkg/kubectl/cmd/util
-
pkg/kubectl/resource
-
pkg/client/unversioned/clientcmd
-
pkg/kubectl/cmd/util
-
pkg/kubectl/resource
-
package
:
github.com/gosuri/uitable
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