Explorar o código

return same error with more context

Co-authored-by: abelanger5 <belanger@sas.upenn.edu>
Mohammed Nafees %!s(int64=4) %!d(string=hai) anos
pai
achega
e6dee4ccf3
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      internal/helm/agent.go

+ 4 - 1
internal/helm/agent.go

@@ -254,7 +254,10 @@ func (a *Agent) UpgradeReleaseByValues(
 					}
 
 					return res, nil
-				}
+				} else {
+				  // return the error with a more detailed message, something like this:
+				  return nil, fmt.Errorf("another operation (install/upgrade/rollback) is in progress. If this error persists, please wait 60 seconds to force an upgrade")
+				  }
 			}
 		}