dapr / cli

Command-line tools for Dapr.
Apache License 2.0
315 stars 200 forks source link

Dapr upgrade/downgrade issue #1289

Closed pravinpushkar closed 1 year ago

pravinpushkar commented 1 year ago
ldapr upgrade -k --runtime-version 1.10.7
ℹ️  Container images will be pulled from Docker Hub
ℹ️  Dapr control plane version 1.11.0-rc.1 detected in namespace dapr-system
ℹ️  Starting upgrade...
ℹ️  Downgrade detected, skipping CRDs.
❌  Failed to upgrade Dapr: rendered manifests contain a resource that already exists. Unable to continue with update: ServiceAccount "dapr-dashboard" in namespace "dapr-system" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "dapr": current value is "dapr-dashboard"

RELEASE NOTE: FIXED Dashboard related issues while init/upgrade/downgrade

artursouza commented 1 year ago

As per discussion in the call:


Dapr upgrade/downgrade

Current runtime version ; Current dashboard version ; runtime version param; dashboard version param; expected behavior
(Good - test needs update) 1.10.7;  0.12; 1.11.0 ; not present ; Upgrade to 1.11 and dashboard is not present
(Needs to be validated) 1.10.7;  0.12; 1.11.0 ; 0.13 ; Upgrade to 1.11 and dashboard 0.13 is installed

(Needs to be fixed) 1.11.0; 0.13; 1.10.x ; not present; Downgrade to 1.10 and dashboard is present as per 1.10 chart
(Needs to be fixed) 1.11.0; 0.13; 1.10.x ; 0.13; Downgrade to 1.10 and dashboard is present as per 1.10 chart; install 0.13 fails (warning)

(Needs to be validated) 1.11.0; not present; 1.10.x; not present; Downgrade to 1.10 and dashboard is present as per 1.10 chart

1.10.x; 0.12; 1.9; not present; Downgrade works as-is.
pravinpushkar commented 1 year ago

Addressed in #1290 which is cherry-picker into pr #1276