File tree Expand file tree Collapse file tree
pkg/aif-ui/pages/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -405,6 +405,14 @@ async function loadAIWorkloadDetails() {
405405 if (app ?.chartName ) form .value .chartName = app .chartName ;
406406 if (app ?.chartVersion ) form .value .chartVersion = app .chartVersion ;
407407 if (app ?.chartRepo ) form .value .chartRepo = app .chartRepo ;
408+ // Restore the user's original release name from the CR. The URL query
409+ // parameter (instanceName) contains the AIWorkload CR's metadata.name,
410+ // which includes cluster ID suffixes for downstream deployments (e.g.,
411+ // "qdrant-c-785f4"), but the Helm release name should stay stable across
412+ // upgrades (e.g., "qdrant"). Without this sync, an upgrade would write a
413+ // different releaseName to the HelmOp and Fleet would create a new Helm
414+ // install instead of upgrading the existing release.
415+ if (app ?.release ) form .value .release = app .release ;
408416
409417 // Authoritative deploy strategy from the CR.
410418 if (workload .spec .deployStrategy ) {
You can’t perform that action at this time.
0 commit comments