Browse Source

return same error with more context

Co-authored-by: abelanger5 <belanger@sas.upenn.edu>
Mohammed Nafees 4 năm trước cách đây
mục cha
commit
e6dee4ccf3
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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")
+				  }
 			}
 		}