{
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
  "extends": [
    "local>infrastructure/renovate-config"
  ],
  "customManagers": [
    {
      "customType": "regex",
      "description": "k3s",
      "fileMatch": [
        "playbook\\.yml"
      ],
      "matchStrings": [
        "\\s+k3s_version:\\s(?<currentValue>.*)"
      ],
      "depNameTemplate": "k3s-io/k3s",
      "datasourceTemplate": "github-releases"
    },
    {
      "customType": "regex",
      "description": "ArgoCD",
      "fileMatch": [
        "^argocd-bootstrap/.*\\.yml$"
      ],
      "matchStrings": [
       "\\s+chart:\\s(?<depName>.*)",
       "\\s+repo:\\s(?<registryUrl>.*)",
       "\\s+version:\\s(?<currentValue>.*)"
      ],
      "matchStringsStrategy": "combination",
      "datasourceTemplate": "helm"
    },
    {
      "customType": "regex",
      "description": "Baseline Manifests",
      "fileMatch": [
        "\\.jsonnet$"
      ],
      "matchStrings": [
        "\\s+chart::\\s\\\"(?<depName>.*)\\\",",
        "\\s+repo::\\s\\\"(?<registryUrl>.*)\\\",",
        "\\s+version::\\s\\\"(?<currentValue>.*)\\\","
      ],
      "matchStringsStrategy": "combination",
      "datasourceTemplate": "helm"
    }
  ]
}