|
|
|
@ -39,32 +39,32 @@ func ListReleases(limit int, offset string, sort rls.ListSort_SortBy, order rls.
|
|
|
|
|
ReleaseListSort(int32(sort)),
|
|
|
|
|
ReleaseListOrder(int32(order)),
|
|
|
|
|
}
|
|
|
|
|
return NewClient(HelmHost(Config.ServAddr)).ListReleases(opts...)
|
|
|
|
|
return NewClient(Host(Config.ServAddr)).ListReleases(opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetReleaseStatus gets a release status. DEPRECATED
|
|
|
|
|
//
|
|
|
|
|
// Soon to be deprecated helm GetReleaseStatus API.
|
|
|
|
|
func GetReleaseStatus(rlsName string) (*rls.GetReleaseStatusResponse, error) {
|
|
|
|
|
return NewClient(HelmHost(Config.ServAddr)).ReleaseStatus(rlsName)
|
|
|
|
|
return NewClient(Host(Config.ServAddr)).ReleaseStatus(rlsName)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetReleaseContent gets the content of a release.
|
|
|
|
|
// Soon to be deprecated helm GetReleaseContent API.
|
|
|
|
|
func GetReleaseContent(rlsName string) (*rls.GetReleaseContentResponse, error) {
|
|
|
|
|
return NewClient(HelmHost(Config.ServAddr)).ReleaseContent(rlsName)
|
|
|
|
|
return NewClient(Host(Config.ServAddr)).ReleaseContent(rlsName)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UpdateRelease updates a release.
|
|
|
|
|
// Soon to be deprecated helm UpdateRelease API.
|
|
|
|
|
func UpdateRelease(rlsName string) (*rls.UpdateReleaseResponse, error) {
|
|
|
|
|
return NewClient(HelmHost(Config.ServAddr)).UpdateRelease(rlsName)
|
|
|
|
|
return NewClient(Host(Config.ServAddr)).UpdateRelease(rlsName)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// InstallRelease runs an install for a release.
|
|
|
|
|
// Soon to be deprecated helm InstallRelease API.
|
|
|
|
|
func InstallRelease(vals []byte, rlsName, chStr string, dryRun bool) (*rls.InstallReleaseResponse, error) {
|
|
|
|
|
client := NewClient(HelmHost(Config.ServAddr))
|
|
|
|
|
client := NewClient(Host(Config.ServAddr))
|
|
|
|
|
if dryRun {
|
|
|
|
|
client.Option(DryRun())
|
|
|
|
|
}
|
|
|
|
@ -74,7 +74,7 @@ func InstallRelease(vals []byte, rlsName, chStr string, dryRun bool) (*rls.Insta
|
|
|
|
|
// UninstallRelease destroys an existing release.
|
|
|
|
|
// Soon to be deprecated helm UninstallRelease API.
|
|
|
|
|
func UninstallRelease(rlsName string, dryRun bool) (*rls.UninstallReleaseResponse, error) {
|
|
|
|
|
client := NewClient(HelmHost(Config.ServAddr))
|
|
|
|
|
client := NewClient(Host(Config.ServAddr))
|
|
|
|
|
if dryRun {
|
|
|
|
|
client.Option(DryRun())
|
|
|
|
|
}
|
|
|
|
|