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
24997eed
Commit
24997eed
authored
Apr 01, 2016
by
Michelle Noorali
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #544 from runseb/helmns
Changes the namespace form DM to helm in the server install/uninstall
parents
a2a5564c
75ded56f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
27 deletions
+27
-27
server.go
cmd/helm/server.go
+1
-1
install.go
pkg/client/install.go
+25
-25
uninstall.go
pkg/client/uninstall.go
+1
-1
No files found.
cmd/helm/server.go
View file @
24997eed
...
@@ -162,7 +162,7 @@ func statusServer(c *cli.Context) error {
...
@@ -162,7 +162,7 @@ func statusServer(c *cli.Context) error {
kubectlPath
:=
c
.
GlobalString
(
"kubectl"
)
kubectlPath
:=
c
.
GlobalString
(
"kubectl"
)
runner
:=
buildKubectlRunner
(
kubectlPath
,
dryRun
)
runner
:=
buildKubectlRunner
(
kubectlPath
,
dryRun
)
out
,
err
:=
runner
.
GetByKind
(
"pods"
,
""
,
"
d
m"
)
out
,
err
:=
runner
.
GetByKind
(
"pods"
,
""
,
"
hel
m"
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
pkg/client/install.go
View file @
24997eed
...
@@ -73,7 +73,7 @@ func (i *Installer) expand() ([]byte, error) {
...
@@ -73,7 +73,7 @@ func (i *Installer) expand() ([]byte, error) {
func
IsInstalled
(
runner
kubectl
.
Runner
)
bool
{
func
IsInstalled
(
runner
kubectl
.
Runner
)
bool
{
// Basically, we test "all-or-nothing" here: if this returns without error
// 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.
// we know that we have both the namespace and the manager API server.
out
,
err
:=
runner
.
GetByKind
(
"rc"
,
"manager-rc"
,
"
d
m"
)
out
,
err
:=
runner
.
GetByKind
(
"rc"
,
"manager-rc"
,
"
hel
m"
)
if
err
!=
nil
{
if
err
!=
nil
{
format
.
Err
(
"Installation not found: %s %s"
,
out
,
err
)
format
.
Err
(
"Installation not found: %s %s"
,
out
,
err
)
return
false
return
false
...
@@ -101,44 +101,44 @@ apiVersion: v1
...
@@ -101,44 +101,44 @@ apiVersion: v1
kind: Namespace
kind: Namespace
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name:
d
m-namespace
name:
hel
m-namespace
name:
d
m
name:
hel
m
---
---
apiVersion: v1
apiVersion: v1
kind: Service
kind: Service
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name: expandybird-service
name: expandybird-service
name: expandybird-service
name: expandybird-service
namespace:
d
m
namespace:
hel
m
spec:
spec:
ports:
ports:
- name: expandybird
- name: expandybird
port: 8081
port: 8081
targetPort: 8080
targetPort: 8080
selector:
selector:
app:
d
m
app:
hel
m
name: expandybird
name: expandybird
---
---
apiVersion: v1
apiVersion: v1
kind: ReplicationController
kind: ReplicationController
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name: expandybird-rc
name: expandybird-rc
name: expandybird-rc
name: expandybird-rc
namespace:
d
m
namespace:
hel
m
spec:
spec:
replicas: 2
replicas: 2
selector:
selector:
app:
d
m
app:
hel
m
name: expandybird
name: expandybird
template:
template:
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name: expandybird
name: expandybird
spec:
spec:
containers:
containers:
...
@@ -153,36 +153,36 @@ apiVersion: v1
...
@@ -153,36 +153,36 @@ apiVersion: v1
kind: Service
kind: Service
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name: resourcifier-service
name: resourcifier-service
name: resourcifier-service
name: resourcifier-service
namespace:
d
m
namespace:
hel
m
spec:
spec:
ports:
ports:
- name: resourcifier
- name: resourcifier
port: 8082
port: 8082
targetPort: 8080
targetPort: 8080
selector:
selector:
app:
d
m
app:
hel
m
name: resourcifier
name: resourcifier
---
---
apiVersion: v1
apiVersion: v1
kind: ReplicationController
kind: ReplicationController
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name: resourcifier-rc
name: resourcifier-rc
name: resourcifier-rc
name: resourcifier-rc
namespace:
d
m
namespace:
hel
m
spec:
spec:
replicas: 2
replicas: 2
selector:
selector:
app:
d
m
app:
hel
m
name: resourcifier
name: resourcifier
template:
template:
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name: resourcifier
name: resourcifier
spec:
spec:
containers:
containers:
...
@@ -197,36 +197,36 @@ apiVersion: v1
...
@@ -197,36 +197,36 @@ apiVersion: v1
kind: Service
kind: Service
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name: manager-service
name: manager-service
name: manager-service
name: manager-service
namespace:
d
m
namespace:
hel
m
spec:
spec:
ports:
ports:
- name: manager
- name: manager
port: 8080
port: 8080
targetPort: 8080
targetPort: 8080
selector:
selector:
app:
d
m
app:
hel
m
name: manager
name: manager
---
---
apiVersion: v1
apiVersion: v1
kind: ReplicationController
kind: ReplicationController
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name: manager-rc
name: manager-rc
name: manager-rc
name: manager-rc
namespace:
d
m
namespace:
hel
m
spec:
spec:
replicas: 1
replicas: 1
selector:
selector:
app:
d
m
app:
hel
m
name: manager
name: manager
template:
template:
metadata:
metadata:
labels:
labels:
app:
d
m
app:
hel
m
name: manager
name: manager
spec:
spec:
containers:
containers:
...
...
pkg/client/uninstall.go
View file @
24997eed
...
@@ -25,6 +25,6 @@ import (
...
@@ -25,6 +25,6 @@ import (
// Returns the string output received from the operation, and an error if the
// Returns the string output received from the operation, and an error if the
// command failed.
// command failed.
func
Uninstall
(
runner
kubectl
.
Runner
)
(
string
,
error
)
{
func
Uninstall
(
runner
kubectl
.
Runner
)
(
string
,
error
)
{
o
,
err
:=
runner
.
Delete
(
"
d
m"
,
"Namespace"
)
o
,
err
:=
runner
.
Delete
(
"
hel
m"
,
"Namespace"
)
return
string
(
o
),
err
return
string
(
o
),
err
}
}
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