monitoring: rotate grafana dedupe job

This commit is contained in:
Brad Stein 2026-04-21 21:25:05 -03:00
parent 2df830f01b
commit fac139fd0e

View File

@ -1,12 +1,12 @@
# services/monitoring/oneoffs/grafana-user-dedupe-job.yaml
# One-off job for monitoring/grafana-user-dedupe-api-v7.
# Purpose: grafana user dedupe api v7 (see container args/env in this file).
# One-off job for monitoring/grafana-user-dedupe-api-v8.
# Purpose: grafana user dedupe api v8 (see container args/env in this file).
# Run by setting spec.suspend to false, reconcile, then set it back to true.
# Safe to delete the finished Job/pod; it should not run continuously.
apiVersion: batch/v1
kind: Job
metadata:
name: grafana-user-dedupe-api-v7
name: grafana-user-dedupe-api-v8
namespace: monitoring
spec:
suspend: true
@ -49,7 +49,7 @@ spec:
- -c
args:
- |
set -euo pipefail
set -eu
for _ in $(seq 1 30); do
if [ -f /vault/secrets/grafana-env.sh ]; then
break