Fix terminology (#35)

In a backward compatible manner, so that (I believe) we could move the discussion made in #25 forward.

Fixes #25
This commit is contained in:
KUOKA Yusuke
2018-03-03 00:14:43 +09:00
committed by GitHub
parent efdede1658
commit 0fc74ea771
7 changed files with 151 additions and 68 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ func (helm *execer) UpdateRepo() error {
return err
}
func (helm *execer) SyncChart(name, chart string, flags ...string) error {
func (helm *execer) SyncRelease(name, chart string, flags ...string) error {
out, err := helm.exec(append([]string{"upgrade", "--install", name, chart}, flags...)...)
if helm.writer != nil {
helm.writer.Write(out)
@@ -54,7 +54,7 @@ func (helm *execer) SyncChart(name, chart string, flags ...string) error {
return err
}
func (helm *execer) DiffChart(name, chart string, flags ...string) error {
func (helm *execer) DiffRelease(name, chart string, flags ...string) error {
out, err := helm.exec(append([]string{"diff", name, chart}, flags...)...)
if helm.writer != nil {
helm.writer.Write(out)
@@ -62,7 +62,7 @@ func (helm *execer) DiffChart(name, chart string, flags ...string) error {
return err
}
func (helm *execer) DeleteChart(name string) error {
func (helm *execer) DeleteRelease(name string) error {
out, err := helm.exec("delete", "--purge", name)
if helm.writer != nil {
helm.writer.Write(out)
+3 -3
View File
@@ -6,7 +6,7 @@ type Interface interface {
AddRepo(name, repository string) error
UpdateRepo() error
SyncChart(name, chart string, flags ...string) error
DiffChart(name, chart string, flags ...string) error
DeleteChart(name string) error
SyncRelease(name, chart string, flags ...string) error
DiffRelease(name, chart string, flags ...string) error
DeleteRelease(name string) error
}