Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
9b209008
Commit
9b209008
authored
Apr 05, 2016
by
Michelle Noorali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ref(helm/doctor): update error message
This resolves issue #558.
parent
abd1a5c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
doctor.go
cmd/helm/doctor.go
+1
-1
install.go
pkg/client/install.go
+1
-3
No files found.
cmd/helm/doctor.go
View file @
9b209008
...
...
@@ -42,7 +42,7 @@ func doctor(c *cli.Context) error {
if
client
.
IsInstalled
(
runner
)
{
format
.
Success
(
"You have everything you need. Go forth my friend!"
)
}
else
{
format
.
Warning
(
"Looks like you don't have
DM
installed.
\n
Run: `helm server install`"
)
format
.
Warning
(
"Looks like you don't have
the helm server-side components
installed.
\n
Run: `helm server install`"
)
}
return
nil
...
...
pkg/client/install.go
View file @
9b209008
...
...
@@ -21,7 +21,6 @@ import (
"text/template"
"github.com/Masterminds/sprig"
"github.com/kubernetes/helm/pkg/format"
"github.com/kubernetes/helm/pkg/kubectl"
)
...
...
@@ -73,9 +72,8 @@ func (i *Installer) expand() ([]byte, error) {
func
IsInstalled
(
runner
kubectl
.
Runner
)
bool
{
// Basically, we test "all-or-nothing" here: if this returns without error
// we know that we have both the namespace and the manager API server.
out
,
err
:=
runner
.
GetByKind
(
"rc"
,
"manager-rc"
,
"helm"
)
_
,
err
:=
runner
.
GetByKind
(
"rc"
,
"manager-rc"
,
"helm"
)
if
err
!=
nil
{
format
.
Err
(
"Installation not found: %s %s"
,
out
,
err
)
return
false
}
return
true
...
...
Write
Preview
Markdown
is supported
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