2.5.x: application update failed

I upgrade to 2.5.2, and when I tried to upgrade applications install previously from 2.4 (from app and marketplace).

They failed with

helm upgrade --history-max=5 --install=true --namespace=metallb --timeout=10m0s --values=/home/shell/helm/values-metallb-1.0.1.yaml --version=1.0.1 --wait=true metallb /home/shell/helm/metallb-1.0.1.tgz
Release "metallb" does not exist. Installing it now.
Error: rendered manifests contain a resource that already exists. Unable to continue with install: PodSecurityPolicy "metallb-speaker" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "metallb"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "metallb"

Not sure it has anything to do with helm2 deprecation and more to another helm repo…

1 Like

It seems like before 2.5, rancher app install did not add the labels for helm?

I see these labels

labels:
    app: metallb
    chart: metallb-0.12.1
    component: speaker
    heritage: Tiller
    io.cattle.field/appId: metallb
    release: metallb

How should I fixed this? just add the missing labels?