mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 15:27:03 +02:00
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:
+3
-3
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user