Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename ServiceMonitors to not get deleted by operator
We create our own ServiceMonitor resources, since the argocd-operator doesn't support creating ServiceMonitors without also deploying a Prometheus instance. However, the operator will delete any ServiceMonitor which matches the name that it would generate for its managed ServiceMonitors if the Prometheus component is disabled, cf. https://github.com/argoproj-labs/argocd-operator/blob/17064c9b310785ab145747a367f7deb5507a572e/controllers/argocd/prometheus.go#L129-L136 This causes the component-managed ServiceMonitors to get deleted from time to time, and they get recreated after a while by an ArgoCD resync. This commit circumvents the issue by renaming the component-managed ServiceMonitors so they don't get deleted by the operator.
- Loading branch information