fix: let Renovate set promtool in kube-prometheus-stack PRs #89
Loading…
Reference in a new issue
No description provided.
Delete branch "ivuorinen/fix/renovate-promtool-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
promtool in mise.toml has to match the Prometheus that kube-prometheus-stack
deploys, and scripts/ci/check-promtool-parity.sh fails the render job until
it does. Renovate cannot read that version, because it lives inside the
chart, so the PR body asked a human to set the pin. #21 (chart 91.9.0, which
ships Prometheus 3.15.0) has been failing its render job on exactly that,
and every chart bump that moves Prometheus would fail the same way. The
Longhorn rule already shows the standard fix: a post-upgrade task that
renders the chart and writes the result into the same PR.
sets the pin to the rendered Prometheus instead of failing. Both sides are
still read by one piece of code, so the value written is the one the check
accepts. CI never passes --write.
Application with sed (Renovate's containerbase cannot install yq), renders
only the Prometheus template with helm, and runs the check with --write.
The Application overrides neither the image nor the version. If it ever
does, the render job's parity check, which uses the Application's values,
fails on the difference.
postUpgradeTasks command (helm only, fileFilters mise.toml), and replaces
the PR note asking for the manual step.
also named scripts/15 and scripts/11, which no longer exist; those rows now
name gitops/apps/crds/versions.yaml.
Tests: three --write cases in tests/check-promtool-parity.bats, and
tests/sync-promtool-version.bats, which runs the script against a stub helm.
All five failed before the code existed. Against the real chart, the script
leaves the pin alone at 88.6.5 and sets 3.14.0 -> 3.15.0 at 91.9.0.
After merging, wait for ArgoCD to sync the renovate ConfigMap, then tick
"rebase" for #21 on the Renovate Dashboard so the task runs on its branch.