gitops-operator icon indicating copy to clipboard operation
gitops-operator copied to clipboard

PrometheusRules resource not updated on Operator upgrade

Open vinzent opened this issue 3 years ago • 0 comments

Describe the bug We have 2 clusters that have the gitops-operator installed since last summer. A third cluster we have reinstalled recently. Altough all clusters have the csv openshift-gitops-operator.v1.5.2, only the recently installed cluster has the for: 5m in the PrometheusRules resource in the openshift-gitops namespace.

To Reproduce Steps to reproduce the behavior:

  1. have an old cluster with openshift-gitops installed and upgraded for a longer time
  2. check PrometheusRules for for: 5m

Expected behavior PrometheusRules resource should be updated on operator update.

Additional context If I delete the PrometheusRules resource with oc delete prometheusrule gitops-operator-argocd-alerts the resource is not recreated automatically.

The for: 5m was introduced here: https://github.com/redhat-developer/gitops-operator/pull/266

vinzent avatar Jun 01 '22 09:06 vinzent