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
936028f2
Unverified
Commit
936028f2
authored
8 years ago
by
Matt Butcher
Browse files
Options
Download
Patches
Plain Diff
fix(*): add support for "DELETING" status
Closes #1511
parent
69e50abc
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
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.0-rc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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
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
_proto/hapi/release/status.proto
+2
-0
_proto/hapi/release/status.proto
cmd/helm/list.go
+6
-3
cmd/helm/list.go
cmd/helm/list_test.go
+10
-0
cmd/helm/list_test.go
pkg/proto/hapi/release/status.pb.go
+22
-18
pkg/proto/hapi/release/status.pb.go
pkg/tiller/release_server.go
+8
-4
pkg/tiller/release_server.go
with
48 additions
and
25 deletions
+48
-25
_proto/hapi/release/status.proto
+
2
−
0
View file @
936028f2
...
@@ -33,6 +33,8 @@ message Status {
...
@@ -33,6 +33,8 @@ message Status {
SUPERSEDED
=
3
;
SUPERSEDED
=
3
;
// Status_FAILED indicates that the release was not successfully deployed.
// Status_FAILED indicates that the release was not successfully deployed.
FAILED
=
4
;
FAILED
=
4
;
// Status_DELETING indicates that a delete operation is underway.
DELETING
=
5
;
}
}
Code
code
=
1
;
Code
code
=
1
;
...
...
This diff is collapsed.
Click to expand it.
cmd/helm/list.go
+
6
−
3
View file @
936028f2
...
@@ -67,6 +67,7 @@ type listCmd struct {
...
@@ -67,6 +67,7 @@ type listCmd struct {
out
io
.
Writer
out
io
.
Writer
all
bool
all
bool
deleted
bool
deleted
bool
deleting
bool
deployed
bool
deployed
bool
failed
bool
failed
bool
superseded
bool
superseded
bool
...
@@ -104,6 +105,7 @@ func newListCmd(client helm.Interface, out io.Writer) *cobra.Command {
...
@@ -104,6 +105,7 @@ func newListCmd(client helm.Interface, out io.Writer) *cobra.Command {
f
.
StringVarP
(
&
list
.
offset
,
"offset"
,
"o"
,
""
,
"next release name in the list, used to offset from start value"
)
f
.
StringVarP
(
&
list
.
offset
,
"offset"
,
"o"
,
""
,
"next release name in the list, used to offset from start value"
)
f
.
BoolVar
(
&
list
.
all
,
"all"
,
false
,
"show all releases, not just the ones marked DEPLOYED"
)
f
.
BoolVar
(
&
list
.
all
,
"all"
,
false
,
"show all releases, not just the ones marked DEPLOYED"
)
f
.
BoolVar
(
&
list
.
deleted
,
"deleted"
,
false
,
"show deleted releases"
)
f
.
BoolVar
(
&
list
.
deleted
,
"deleted"
,
false
,
"show deleted releases"
)
f
.
BoolVar
(
&
list
.
deleting
,
"deleting"
,
false
,
"show releases that are currently being deleted"
)
f
.
BoolVar
(
&
list
.
deployed
,
"deployed"
,
false
,
"show deployed releases. If no other is specified, this will be automatically enabled"
)
f
.
BoolVar
(
&
list
.
deployed
,
"deployed"
,
false
,
"show deployed releases. If no other is specified, this will be automatically enabled"
)
f
.
BoolVar
(
&
list
.
failed
,
"failed"
,
false
,
"show failed releases"
)
f
.
BoolVar
(
&
list
.
failed
,
"failed"
,
false
,
"show failed releases"
)
// TODO: Do we want this as a feature of 'helm list'?
// TODO: Do we want this as a feature of 'helm list'?
...
@@ -165,9 +167,7 @@ func (l *listCmd) statusCodes() []release.Status_Code {
...
@@ -165,9 +167,7 @@ func (l *listCmd) statusCodes() []release.Status_Code {
release
.
Status_UNKNOWN
,
release
.
Status_UNKNOWN
,
release
.
Status_DEPLOYED
,
release
.
Status_DEPLOYED
,
release
.
Status_DELETED
,
release
.
Status_DELETED
,
// TODO: Should we return superseded records? These are records
release
.
Status_DELETING
,
// that were replaced by an upgrade.
//release.Status_SUPERSEDED,
release
.
Status_FAILED
,
release
.
Status_FAILED
,
}
}
}
}
...
@@ -178,6 +178,9 @@ func (l *listCmd) statusCodes() []release.Status_Code {
...
@@ -178,6 +178,9 @@ func (l *listCmd) statusCodes() []release.Status_Code {
if
l
.
deleted
{
if
l
.
deleted
{
status
=
append
(
status
,
release
.
Status_DELETED
)
status
=
append
(
status
,
release
.
Status_DELETED
)
}
}
if
l
.
deleting
{
status
=
append
(
status
,
release
.
Status_DELETING
)
}
if
l
.
failed
{
if
l
.
failed
{
status
=
append
(
status
,
release
.
Status_FAILED
)
status
=
append
(
status
,
release
.
Status_FAILED
)
}
}
...
...
This diff is collapsed.
Click to expand it.
cmd/helm/list_test.go
+
10
−
0
View file @
936028f2
...
@@ -77,6 +77,16 @@ func TestListCmd(t *testing.T) {
...
@@ -77,6 +77,16 @@ func TestListCmd(t *testing.T) {
// See note on previous test.
// See note on previous test.
expected
:
"thomas-guide
\n
atlas-guide"
,
expected
:
"thomas-guide
\n
atlas-guide"
,
},
},
{
name
:
"with a release, multiple flags, deleting"
,
args
:
[]
string
{
"--all"
,
"-q"
},
resp
:
[]
*
release
.
Release
{
releaseMock
(
&
releaseOptions
{
name
:
"thomas-guide"
,
statusCode
:
release
.
Status_DELETING
}),
releaseMock
(
&
releaseOptions
{
name
:
"atlas-guide"
,
statusCode
:
release
.
Status_DEPLOYED
}),
},
// See note on previous test.
expected
:
"thomas-guide
\n
atlas-guide"
,
},
}
}
var
buf
bytes
.
Buffer
var
buf
bytes
.
Buffer
...
...
This diff is collapsed.
Click to expand it.
pkg/proto/hapi/release/status.pb.go
+
22
−
18
View file @
936028f2
...
@@ -27,6 +27,8 @@ const (
...
@@ -27,6 +27,8 @@ const (
Status_SUPERSEDED
Status_Code
=
3
Status_SUPERSEDED
Status_Code
=
3
// Status_FAILED indicates that the release was not successfully deployed.
// Status_FAILED indicates that the release was not successfully deployed.
Status_FAILED
Status_Code
=
4
Status_FAILED
Status_Code
=
4
// Status_DELETING indicates that a delete operation is underway.
Status_DELETING
Status_Code
=
5
)
)
var
Status_Code_name
=
map
[
int32
]
string
{
var
Status_Code_name
=
map
[
int32
]
string
{
...
@@ -35,6 +37,7 @@ var Status_Code_name = map[int32]string{
...
@@ -35,6 +37,7 @@ var Status_Code_name = map[int32]string{
2
:
"DELETED"
,
2
:
"DELETED"
,
3
:
"SUPERSEDED"
,
3
:
"SUPERSEDED"
,
4
:
"FAILED"
,
4
:
"FAILED"
,
5
:
"DELETING"
,
}
}
var
Status_Code_value
=
map
[
string
]
int32
{
var
Status_Code_value
=
map
[
string
]
int32
{
"UNKNOWN"
:
0
,
"UNKNOWN"
:
0
,
...
@@ -42,6 +45,7 @@ var Status_Code_value = map[string]int32{
...
@@ -42,6 +45,7 @@ var Status_Code_value = map[string]int32{
"DELETED"
:
2
,
"DELETED"
:
2
,
"SUPERSEDED"
:
3
,
"SUPERSEDED"
:
3
,
"FAILED"
:
4
,
"FAILED"
:
4
,
"DELETING"
:
5
,
}
}
func
(
x
Status_Code
)
String
()
string
{
func
(
x
Status_Code
)
String
()
string
{
...
@@ -79,22 +83,22 @@ func init() {
...
@@ -79,22 +83,22 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"hapi/release/status.proto"
,
fileDescriptor3
)
}
func
init
()
{
proto
.
RegisterFile
(
"hapi/release/status.proto"
,
fileDescriptor3
)
}
var
fileDescriptor3
=
[]
byte
{
var
fileDescriptor3
=
[]
byte
{
// 26
1
bytes of a gzipped FileDescriptorProto
// 26
9
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x09
,
0x6e
,
0x88
,
0x02
,
0xff
,
0x4c
,
0x8f
,
0x
c1
,
0x
4e
,
0x8
3
,
0x40
,
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x09
,
0x6e
,
0x88
,
0x02
,
0xff
,
0x4c
,
0x8f
,
0x
4d
,
0x
6f
,
0x8
2
,
0x40
,
0x10
,
0x86
,
0x
dd
,
0x
16
,
0x
41
,
0x
a
6
,
0x
4d
,
0x4
3
,
0x36
,
0x
3d
,
0x
8
0
,
0xf
1
,
0x40
,
0x
7a
,
0x
e2
,
0xe
2
,
0x10
,
0x86
,
0x
bb
,
0x
8a
,
0x
50
,
0x
4
6
,
0x
6
3
,
0x36
,
0x1b
,
0x
0f
,
0x
d
0
,
0xf
4
,
0x40
,
0x
3c
,
0x
71
,
0xe
9
,
0x92
,
0xd
4
,
0x
27
,
0x
a8
,
0x
ee
,
0x
9a
,
0x
a8
,
0x
8
4
,
0x
36
,
0x
6
0
,
0x
63
,
0xf
4
,
0x
4
6
,
0x
cb
,
0x5
8
,
0x
9
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
,
0x
f3
,
0x
65
,
0x
be
,
0x
08
,
0x
a5
,
0x
a0
,
0x
4
6
,
0x
17
,
0x
0
b
,
0x
e
5
,
0x
ce
,
0x
e9
,
0x
99
,
0x
8
d
,
0x
6d
,
0x
2e
,
0x
7c
,
0x
f8
,
0x
0b
,
0x
00
,
0x
00
,
0x
ff
,
0x
ff
,
0x
a
e
,
0x
07
,
0x
4
7
,
0x
7a
,
0x
11
,
0x
bd
,
0xd
2
,
0x
c1
,
0x
93
,
0x
fd
,
0x
65
,
0x
9d
,
0x
4f
,
0x
db
,
0x
9a
,
0x
ed
,
0x
b
e
,
0x
8f
,
0x7
f
,
0x
1f
,
0x41
,
0x01
,
0x00
,
0x00
,
0x
01
,
0x00
,
0x00
,
0xff
,
0xff
,
0xc8
,
0x7b
,
0x5f
,
0x3b
,
0x4f
,
0x01
,
0x00
,
0x00
,
}
}
This diff is collapsed.
Click to expand it.
pkg/tiller/release_server.go
100755 → 100644
+
8
−
4
View file @
936028f2
...
@@ -949,7 +949,7 @@ func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
...
@@ -949,7 +949,7 @@ func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
}
}
log
.
Printf
(
"uninstall: Deleting %s"
,
req
.
Name
)
log
.
Printf
(
"uninstall: Deleting %s"
,
req
.
Name
)
rel
.
Info
.
Status
.
Code
=
release
.
Status_DELET
ED
rel
.
Info
.
Status
.
Code
=
release
.
Status_DELET
ING
rel
.
Info
.
Deleted
=
timeconv
.
Now
()
rel
.
Info
.
Deleted
=
timeconv
.
Now
()
res
:=
&
services
.
UninstallReleaseResponse
{
Release
:
rel
}
res
:=
&
services
.
UninstallReleaseResponse
{
Release
:
rel
}
...
@@ -964,9 +964,8 @@ func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
...
@@ -964,9 +964,8 @@ func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
return
nil
,
fmt
.
Errorf
(
"Could not get apiVersions from Kubernetes: %s"
,
err
)
return
nil
,
fmt
.
Errorf
(
"Could not get apiVersions from Kubernetes: %s"
,
err
)
}
}
// From here on out, the release is currently considered to be in Status_DELETED
// From here on out, the release is currently considered to be in Status_DELETING
// state. See https://github.com/kubernetes/helm/issues/1511 for a better way
// state.
// to do this.
if
err
:=
s
.
env
.
Releases
.
Update
(
rel
);
err
!=
nil
{
if
err
:=
s
.
env
.
Releases
.
Update
(
rel
);
err
!=
nil
{
log
.
Printf
(
"uninstall: Failed to store updated release: %s"
,
err
)
log
.
Printf
(
"uninstall: Failed to store updated release: %s"
,
err
)
}
}
...
@@ -1007,6 +1006,11 @@ func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
...
@@ -1007,6 +1006,11 @@ func (s *ReleaseServer) UninstallRelease(c ctx.Context, req *services.UninstallR
}
}
}
}
rel
.
Info
.
Status
.
Code
=
release
.
Status_DELETED
if
err
:=
s
.
env
.
Releases
.
Update
(
rel
);
err
!=
nil
{
log
.
Printf
(
"uninstall: Failed to store updated release: %s"
,
err
)
}
var
errs
error
var
errs
error
if
len
(
es
)
>
0
{
if
len
(
es
)
>
0
{
errs
=
fmt
.
Errorf
(
"deletion completed with %d error(s): %s"
,
len
(
es
),
strings
.
Join
(
es
,
"; "
))
errs
=
fmt
.
Errorf
(
"deletion completed with %d error(s): %s"
,
len
(
es
),
strings
.
Join
(
es
,
"; "
))
...
...
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