|
|
@ -117,13 +117,13 @@ func NewUpgrade(cfg *Configuration) *Upgrade {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Run executes the upgrade on the given release
|
|
|
|
// Run executes the upgrade on the given release.
|
|
|
|
func (u *Upgrade) Run(name string, chart *chart.Chart, vals map[string]interface{}) (*release.Release, error) {
|
|
|
|
func (u *Upgrade) Run(name string, chart *chart.Chart, vals map[string]interface{}) (*release.Release, error) {
|
|
|
|
ctx := context.Background()
|
|
|
|
ctx := context.Background()
|
|
|
|
return u.RunWithContext(ctx, name, chart, vals)
|
|
|
|
return u.RunWithContext(ctx, name, chart, vals)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Run executes the upgrade on the given release with context.
|
|
|
|
// RunWithContext executes the upgrade on the given release with context.
|
|
|
|
func (u *Upgrade) RunWithContext(ctx context.Context, name string, chart *chart.Chart, vals map[string]interface{}) (*release.Release, error) {
|
|
|
|
func (u *Upgrade) RunWithContext(ctx context.Context, name string, chart *chart.Chart, vals map[string]interface{}) (*release.Release, error) {
|
|
|
|
if err := u.cfg.KubeClient.IsReachable(); err != nil {
|
|
|
|
if err := u.cfg.KubeClient.IsReachable(); err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|