kubewarden / helm-charts

Helm charts for the Kubewarden project
Apache License 2.0
25 stars 16 forks source link

UI shows policy reports from both 1.10 & 1.11 #409

Closed kravciak closed 5 months ago

kravciak commented 5 months ago

Policy reports generated in 1.10 are not cleaned after upgrade to 1.11.

This results in policy-reporter UI showing both old and new reports.

Screenshot from 2024-03-19 17-55-14

~ k get policyreports -n default
NAME                                   PASS   FAIL   WARN   ERROR   SKIP   AGE
polr-ns-default                        3      5      0      0       0      52m
c787b9cf-8d84-40cf-8771-c076575d1c71   0      1      0      0       0      33m
02e6696a-2ada-410c-88ce-6d9af7130164   3      4      0      0       0      33m
9af1624e-a929-403e-8e72-96e7a5daee3e   3      4      0      0       0      32m
738906dc-1668-47b3-a768-de762b8321e5   3      4      0      0       0      31m

Possible solution proposed on daily would be to delete old policy report from helm hook during upgrade to 1.11.0.

kravciak commented 5 months ago

Closing in favor of https://github.com/kubewarden/helm-charts/issues/408