UNCLASSIFIED - NO CUI

Update Renovate to appropriately update dependencies

Update Renovate json to appropriately update dependencies within the wrapper chart. Also related to this issue

This may be a script and new pattern in renovate-runner project

Concept:

Steps

  1. Parse out alloy version from chart.yaml at https://github.com/grafana/k8s-monitoring-helm/blob/main/charts/k8s-monitoring-v1/Chart.yaml dependencies:
  • name: alloy version: 0.9.2

1 new. Get dependency versions from helm commands

helm repo add "repo_grafana" "https://grafana.github.io/helm-charts"
helm repo update
helm pull repo_grafana/k8s-monitoring --untar --untardir temp
echo $(helm dep list temp/k8s-monitoring | head -n 2 | awk 'END{print $2}')
  1. Use that version number to go to this chart URL and extract appVersion from URL below (Example - appVersion: 'v1.4.2') https://github.com/grafana/alloy/blob/helm-chart/0.9.1/operations/helm/charts/alloy/Chart.yaml

  2. Use that version number to go to this values URL https://github.com/grafana/alloy/blob/helm-chart/0.9.1/operations/helm/charts/alloy/values.yaml

  3. Extract alloy.configReloader.image.tag (example - tag: v0.12.0)

Currently the renovate misappropriately updates

  • registry1.dso.mil/ironbank/opensource/grafana/alloy (source) from v1.3.1 to v1.4.3 instead of correctly v1.4.2
  • registry1.dso.mil/ironbank/opensource/jimmidyson/configmap-reload from v0.12.0 to v0.14.0 instead of correctly v0.12.0

Reference this merge request created by renovate bot.

Desired outcomes were

  • k8s-monitoring-v1 chart
  • alloy helm chart tag 0.9.1
    • appVersion 1.4.2 here
    • configmap v0.12.0 here
Edited by Steven Donald