Fix object purge during Thanos migration
Compare changes
Files
2- Steve Starke authored
The thanos-query ServiceMonitor has the same name for Thanos v1 and Thanos v2. Previously we deleted it everytime the thanos_v2 role has been executed. However, helm does not recreate it subsequently. We also can't easily differentiate if the ServiceMonitor has been created by Thanos v1 or Thanos v2 as the k8s Ansible module does not filter for labels if a name for an object is presented. Therefore, this commit introduces an additional migration guard task which checks if the migration already has happened. This also has the advantage that the deletion tasks do not get executed every time.
docs/_releasenotes/+.fixed.thanos-migration
0 → 100644
+ 1
− 0