mirror of https://github.com/helm/helm
Filtering system labels in the k8s drivers' List/Query (as done in the previous commit) also strips them from helm list --selector results, since filterSelector matches against rls.Labels. That silently breaks `helm list -l owner=helm`, `-l status=deployed`, etc., which currently rely on List/Query returning system labels alongside custom ones. Move the fix to where the leak actually turns into a stored value: mergeCustomLabels in the upgrade path, which is what folds the previous release's labels into the new one. Stripping system labels there keeps List/Query/selector behavior unchanged while still preventing stale createdAt/modifiedAt and system-label keys from being carried into the new release's persisted Labels. Fixes #32404 Signed-off-by: bhuvan-somisetty <somisettybhuvan5@gmail.com>pull/32421/head
parent
9cb5367a4d
commit
434d6f4d5c
Loading…
Reference in new issue