Commit 147dc225 authored by lIuDuI's avatar lIuDuI Committed by Matthew Fisher

Update func name (#5250)

* Update func name
Signed-off-by: 's avatarxichengliudui <1693291525@qq.com>

* update pull request
Signed-off-by: 's avatarxichengliudui <1693291525@qq.com>
parent 9e18364f
...@@ -119,7 +119,7 @@ type KubeClient interface { ...@@ -119,7 +119,7 @@ type KubeClient interface {
// by "\n---\n"). // by "\n---\n").
Delete(namespace string, reader io.Reader) error Delete(namespace string, reader io.Reader) error
// Watch the resource in reader until it is "ready". // WatchUntilReady watch the resource in reader until it is "ready".
// //
// For Jobs, "ready" means the job ran to completion (excited without error). // For Jobs, "ready" means the job ran to completion (excited without error).
// For all other kinds, it means the kind was created or modified without // For all other kinds, it means the kind was created or modified without
......
...@@ -456,7 +456,7 @@ func (s *ReleaseServer) deleteHookByPolicy(h *release.Hook, policy string, name, ...@@ -456,7 +456,7 @@ func (s *ReleaseServer) deleteHookByPolicy(h *release.Hook, policy string, name,
return nil return nil
} }
// hookShouldBeDeleted determines whether the defined hook deletion policy matches the hook deletion polices // hookHasDeletePolicy determines whether the defined hook deletion policy matches the hook deletion polices
// supported by helm. If so, mark the hook as one should be deleted. // supported by helm. If so, mark the hook as one should be deleted.
func hookHasDeletePolicy(h *release.Hook, policy string) bool { func hookHasDeletePolicy(h *release.Hook, policy string) bool {
if dp, ok := deletePolices[policy]; ok { if dp, ok := deletePolices[policy]; ok {
......
...@@ -73,7 +73,7 @@ func ExtractHostname(addr string) (string, error) { ...@@ -73,7 +73,7 @@ func ExtractHostname(addr string) (string, error) {
return stripPort(u.Host), nil return stripPort(u.Host), nil
} }
// Backported from Go 1.8 because Circle is still on 1.7 // stripPort from Go 1.8 because Circle is still on 1.7
func stripPort(hostport string) string { func stripPort(hostport string) string {
colon := strings.IndexByte(hostport, ':') colon := strings.IndexByte(hostport, ':')
if colon == -1 { if colon == -1 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment