Helm fails to find tridentopertorpods and I suspect tridentpods PSPs when tries to upgrade trident-operator from version 22.10 to 23.01 and after kubernetes cluster have been upgraded from 1.24 to 1.25 after the trident 22.10 upgrade (as isnstructed). The error message that comes out is:
$ helm -n trident upgrade trident netapp/trident-operator
Error: UPGRADE FAILED: unable to build kubernetes objects from current release manifest: resource mapping not found for name: "tridentoperatorpods" namespace: "" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"
ensure CRDs are installed first
This is the current version of trident-operator installed:
$ helm -n trident list
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
trident trident 2 2022-11-18 11:29:03.809021419 +0100 CET deployed trident-operator-22.10.0 22.10.0
And to be fair a 1.24 cluster still has some PSPs available:
$ kubectl get psp
Warning: policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
NAME PRIV CAPS SELINUX RUNASUSER FSGROUP SUPGROUP READONLYROOTFS VOLUMES
tridentoperatorpods false RunAsAny RunAsAny RunAsAny RunAsAny false projected
tridentpods true RunAsAny RunAsAny RunAsAny RunAsAny false hostPath,projected,emptyDir
Maybe I am doing the upgrade wrong.....