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
fb088851
Commit
fb088851
authored
Mar 12, 2016
by
Adam Reese
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #364 from adamreese/fix/dm-rename-client
ref(client): rename pkg/dm to pkg/client
parents
0577eec8
e922695c
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
19 additions
and
19 deletions
+19
-19
chart_upload.go
cmd/helm/chart_upload.go
+1
-1
delete.go
cmd/helm/delete.go
+1
-1
deploy.go
cmd/helm/deploy.go
+1
-1
dm.go
cmd/helm/dm.go
+3
-3
doctor.go
cmd/helm/doctor.go
+2
-2
get.go
cmd/helm/get.go
+1
-1
helm.go
cmd/helm/helm.go
+3
-3
list.go
cmd/helm/list.go
+1
-1
client.go
pkg/client/client.go
+1
-1
client_test.go
pkg/client/client_test.go
+1
-1
install.go
pkg/client/install.go
+1
-1
transport.go
pkg/client/transport.go
+1
-1
transport_test.go
pkg/client/transport_test.go
+1
-1
uninstall.go
pkg/client/uninstall.go
+1
-1
No files found.
cmd/helm/chart_upload.go
View file @
fb088851
...
...
@@ -93,7 +93,7 @@ func doUpload(filename, cname string, cxt *cli.Context) (string, error) {
return
""
,
nil
}
c
:=
c
lient
(
cxt
)
c
:=
NewC
lient
(
cxt
)
return
c
.
PostChart
(
filename
,
cname
)
}
...
...
cmd/helm/delete.go
View file @
fb088851
...
...
@@ -42,7 +42,7 @@ func deleteDeployment(c *cli.Context) error {
return
errors
.
New
(
"First argument, deployment name, is required. Try 'helm get --help'"
)
}
name
:=
args
[
0
]
deployment
,
err
:=
c
lient
(
c
)
.
DeleteDeployment
(
name
)
deployment
,
err
:=
NewC
lient
(
c
)
.
DeleteDeployment
(
name
)
if
err
!=
nil
{
return
err
}
...
...
cmd/helm/deploy.go
View file @
fb088851
...
...
@@ -102,7 +102,7 @@ func deploy(c *cli.Context) error {
}
}
return
c
lient
(
c
)
.
PostDeployment
(
cfg
)
return
NewC
lient
(
c
)
.
PostDeployment
(
cfg
)
}
// isLocalChart returns true if the given path can be statted.
...
...
cmd/helm/dm.go
View file @
fb088851
...
...
@@ -21,7 +21,7 @@ import (
"os"
"github.com/codegangsta/cli"
"github.com/kubernetes/deployment-manager/pkg/
dm
"
"github.com/kubernetes/deployment-manager/pkg/
client
"
"github.com/kubernetes/deployment-manager/pkg/format"
"github.com/kubernetes/deployment-manager/pkg/kubectl"
)
...
...
@@ -133,7 +133,7 @@ func dmCmd() cli.Command {
func
install
(
dryRun
bool
,
ebImg
,
manImg
,
resImg
string
)
error
{
runner
:=
getKubectlRunner
(
dryRun
)
i
:=
dm
.
NewInstaller
()
i
:=
client
.
NewInstaller
()
i
.
Manager
[
"Image"
]
=
manImg
i
.
Resourcifier
[
"Image"
]
=
resImg
i
.
Expandybird
[
"Image"
]
=
ebImg
...
...
@@ -149,7 +149,7 @@ func install(dryRun bool, ebImg, manImg, resImg string) error {
func
uninstall
(
dryRun
bool
)
error
{
runner
:=
getKubectlRunner
(
dryRun
)
out
,
err
:=
dm
.
Uninstall
(
runner
)
out
,
err
:=
client
.
Uninstall
(
runner
)
if
err
!=
nil
{
format
.
Err
(
"Error uninstalling: %s %s"
,
out
,
err
)
}
...
...
cmd/helm/doctor.go
View file @
fb088851
...
...
@@ -18,7 +18,7 @@ package main
import
(
"github.com/codegangsta/cli"
"github.com/kubernetes/deployment-manager/pkg/
dm
"
"github.com/kubernetes/deployment-manager/pkg/
client
"
"github.com/kubernetes/deployment-manager/pkg/format"
"github.com/kubernetes/deployment-manager/pkg/kubectl"
)
...
...
@@ -39,7 +39,7 @@ func doctorCmd() cli.Command {
func
doctor
(
c
*
cli
.
Context
)
error
{
var
runner
kubectl
.
Runner
runner
=
&
kubectl
.
RealRunner
{}
if
dm
.
IsInstalled
(
runner
)
{
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 install`"
)
...
...
cmd/helm/get.go
View file @
fb088851
...
...
@@ -42,7 +42,7 @@ func get(c *cli.Context) error {
return
errors
.
New
(
"First argument, deployment name, is required. Try 'helm get --help'"
)
}
name
:=
args
[
0
]
deployment
,
err
:=
c
lient
(
c
)
.
GetDeployment
(
name
)
deployment
,
err
:=
NewC
lient
(
c
)
.
GetDeployment
(
name
)
if
err
!=
nil
{
return
err
}
...
...
cmd/helm/helm.go
View file @
fb088851
...
...
@@ -20,7 +20,7 @@ import (
"os"
"github.com/codegangsta/cli"
"github.com/kubernetes/deployment-manager/pkg/
dm
"
"github.com/kubernetes/deployment-manager/pkg/
client
"
)
var
version
=
"0.0.1"
...
...
@@ -78,9 +78,9 @@ func run(c *cli.Context, f func(c *cli.Context) error) {
}
}
func
client
(
c
*
cli
.
Context
)
*
dm
.
Client
{
func
NewClient
(
c
*
cli
.
Context
)
*
client
.
Client
{
host
:=
c
.
GlobalString
(
"host"
)
debug
:=
c
.
GlobalBool
(
"debug"
)
timeout
:=
c
.
GlobalInt
(
"timeout"
)
return
dm
.
NewClient
(
host
)
.
SetDebug
(
debug
)
.
SetTimeout
(
timeout
)
return
client
.
NewClient
(
host
)
.
SetDebug
(
debug
)
.
SetTimeout
(
timeout
)
}
cmd/helm/list.go
View file @
fb088851
...
...
@@ -34,7 +34,7 @@ func listCmd() cli.Command {
}
func
list
(
c
*
cli
.
Context
)
error
{
list
,
err
:=
c
lient
(
c
)
.
ListDeployments
()
list
,
err
:=
NewC
lient
(
c
)
.
ListDeployments
()
if
err
!=
nil
{
return
err
}
...
...
pkg/
dm
/client.go
→
pkg/
client
/client.go
View file @
fb088851
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
dm
package
client
import
(
"encoding/json"
...
...
pkg/
dm
/client_test.go
→
pkg/
client
/client_test.go
View file @
fb088851
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
dm
package
client
import
(
"fmt"
...
...
pkg/
dm
/install.go
→
pkg/
client
/install.go
View file @
fb088851
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
dm
package
client
import
(
"bytes"
...
...
pkg/
dm
/transport.go
→
pkg/
client
/transport.go
View file @
fb088851
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
dm
package
client
import
(
"fmt"
...
...
pkg/
dm
/transport_test.go
→
pkg/
client
/transport_test.go
View file @
fb088851
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
dm
package
client
import
(
"bytes"
...
...
pkg/
dm
/uninstall.go
→
pkg/
client
/uninstall.go
View file @
fb088851
...
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
package
dm
package
client
import
(
"github.com/kubernetes/deployment-manager/pkg/kubectl"
...
...
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