optimize/upgrade: dashboard maybe not in dapr-system (#817)

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: Mukundan Sundararajan <65565396+mukundansundar@users.noreply.github.com>
This commit is contained in:
yellow chicks 2022-08-12 21:36:47 +08:00 committed by GitHub
parent a9a03edf1c
commit d22950672c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ func Upgrade(conf UpgradeConfig) error {
func highAvailabilityEnabled(status []StatusOutput) bool {
for _, s := range status {
if s.Name == "dapr-dashboard" {
continue
}
if s.Replicas > 1 {
return true
}