Describe the bug
If a project ID is added to otherSystemProjectLabelValues during a Helm upgrade, any ProjectHelmChart that is already deployed in that project's registration namespace will be left with a status of "Deployed" even though the underlying HelmChart and HelmRelease will be cleaned up.
To Reproduce
- Deploy Helm Project Operator (ensure that both project-label and system-project-label-value are provided; if using a Rancher 2.6.5+ setup, this should already be the case)
- Add a ProjectHelmChart to the registration namespace of a Project that you plan to ignore, e.g. one named
DoNotMonitorMe
- Upgrade the Helm Project Operator chart to add the project ID of the project that you plan to ignore (e.g.
p-XXXX) to the list of .Values.otherSystemProjectLabelValues
Result
HelmChart and HelmRelease tied to that ProjectHelmChart will be cleaned up, but the status will not be changed.
Expected Result
ProjectHelmChart status should either become empty, take on a newly defined status like CannotDeployInSystemProject, or take on the existing status of UnableToCreateHelmRelease on being targeted within a system project.
Screenshots
Additional context