@@ -156,13 +156,13 @@ func (u *Upgrade) SetRegistryClient(client *registry.Client) {
156156}
157157
158158// Run executes the upgrade on the given release.
159- func (u * Upgrade ) Run (name string , chart chart.Charter , vals map [string ]interface {} ) (ri.Releaser , error ) {
159+ func (u * Upgrade ) Run (name string , chart chart.Charter , vals map [string ]any ) (ri.Releaser , error ) {
160160 ctx := context .Background ()
161161 return u .RunWithContext (ctx , name , chart , vals )
162162}
163163
164164// RunWithContext executes the upgrade on the given release with context.
165- func (u * Upgrade ) RunWithContext (ctx context.Context , name string , ch chart.Charter , vals map [string ]interface {} ) (ri.Releaser , error ) {
165+ func (u * Upgrade ) RunWithContext (ctx context.Context , name string , ch chart.Charter , vals map [string ]any ) (ri.Releaser , error ) {
166166 if err := u .cfg .KubeClient .IsReachable (); err != nil {
167167 return nil , err
168168 }
@@ -213,7 +213,7 @@ func (u *Upgrade) RunWithContext(ctx context.Context, name string, ch chart.Char
213213}
214214
215215// prepareUpgrade builds an upgraded release for an upgrade operation.
216- func (u * Upgrade ) prepareUpgrade (name string , chart * chartv2.Chart , vals map [string ]interface {} ) (* release.Release , * release.Release , bool , error ) {
216+ func (u * Upgrade ) prepareUpgrade (name string , chart * chartv2.Chart , vals map [string ]any ) (* release.Release , * release.Release , bool , error ) {
217217 if chart == nil {
218218 return nil , nil , false , errMissingChart
219219 }
@@ -408,7 +408,7 @@ func (u *Upgrade) performUpgrade(ctx context.Context, originalRelease, upgradedR
408408 }
409409 rChan := make (chan resultMessage )
410410 ctxChan := make (chan resultMessage )
411- doneChan := make (chan interface {} )
411+ doneChan := make (chan any )
412412 defer close (doneChan )
413413 go u .releasingUpgrade (rChan , upgradedRelease , current , target , originalRelease , serverSideApply )
414414 go u .handleContext (ctx , doneChan , ctxChan , upgradedRelease )
@@ -434,7 +434,7 @@ func (u *Upgrade) reportToPerformUpgrade(c chan<- resultMessage, rel *release.Re
434434}
435435
436436// Setup listener for SIGINT and SIGTERM
437- func (u * Upgrade ) handleContext (ctx context.Context , done chan interface {} , c chan <- resultMessage , upgradedRelease * release.Release ) {
437+ func (u * Upgrade ) handleContext (ctx context.Context , done chan any , c chan <- resultMessage , upgradedRelease * release.Release ) {
438438 select {
439439 case <- ctx .Done ():
440440 err := ctx .Err ()
@@ -601,7 +601,7 @@ func (u *Upgrade) failRelease(rel *release.Release, created kube.ResourceList, e
601601//
602602// This is skipped if the u.ResetValues flag is set, in which case the
603603// request values are not altered.
604- func (u * Upgrade ) reuseValues (chart * chartv2.Chart , current * release.Release , newVals map [string ]interface {} ) (map [string ]interface {} , error ) {
604+ func (u * Upgrade ) reuseValues (chart * chartv2.Chart , current * release.Release , newVals map [string ]any ) (map [string ]any , error ) {
605605 if u .ResetValues {
606606 // If ResetValues is set, we completely ignore current.Config.
607607 u .cfg .Logger ().Debug ("resetting values to the chart's original version" )
0 commit comments