{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": ["local>infrastructure/renovate-config"],
  "regexManagers": [
    {
      "description": "k3s",
      "fileMatch": ["pb_install\\.yml"],
      "matchStrings": ["\\s+INSTALL_K3S_CHANNEL:\\s(?<currentValue>.*)"],
      "depNameTemplate": "k3s-io/k3s",
      "datasourceTemplate": "github-releases"
    },
    {
      "description": "ArgoCD",
      "fileMatch": ["argocd-init\\.yml$"],
      "matchStrings": [
        "\\s+repo:\\s(?<registryUrl>.*)\\n\\s+chart:\\s(?<depName>.*)\\n\\s+version:\\s(?<currentValue>.*)\\n"
      ],
      "datasourceTemplate": "helm"
    },
    {
      "description": "Baseline",
      "fileMatch": ["\\.jsonnet$"],
      "matchStrings": [
        "\\s+chart::\\s\\\"(?<depName>.*)\\\",",
        "\\s+version::\\s\\\"(?<currentValue>.*)\\\",",
        "\\s+repo::\\s\\\"(?<registryUrl>.*)\\\","
      ],
      "matchStringsStrategy": "combination",
      "datasourceTemplate": "helm"
    },
    {
      "description": "Baseline - Prometheus",
      "fileMatch": ["prometheus-stack\\.jsonnet"],
      "matchStrings": [
        "\\s+chart::\\s\\\"(?<depName>.*)\\\",",
        "\\s+\\\"version\\\"\:\\s\\\"(?<currentValue>.*)\\\",",
        "\\s+repo::\\s\\\"(?<registryUrl>.*)\\\","
      ],
      "matchStringsStrategy": "combination",
      "datasourceTemplate": "helm"
    }
  ]
}