gitops-operator
gitops-operator copied to clipboard
PrometheusRules resource not updated on Operator upgrade
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:
- have an old cluster with openshift-gitops installed and upgraded for a longer time
- 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